(function(e,A){typeof exports=="object"&&typeof module<"u"?module.exports=A(require("vue"),require("element-plus"),require("echarts"),require("vue-draggable-next")):typeof define=="function"&&define.amd?define(["vue","element-plus","echarts","vue-draggable-next"],A):(e=typeof globalThis<"u"?globalThis:e||self,e["vol-dashboard"]=A(e.Vue,e.elementPlus,e.echarts,e.vueDraggableNext))})(this,function(vue,elementPlus,echarts,vueDraggableNext){"use strict";var _documentCurrentScript=typeof document<"u"?document.currentScript:null;function _interopNamespaceDefault(e){const A=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const l in e)if(l!=="default"){const n=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(A,l,n.get?n:{enumerable:!0,get:()=>e[l]})}}return A.default=e,Object.freeze(A)}const echarts__namespace=_interopNamespaceDefault(echarts),base={getDate:function(e){let A=new Date,l=A.getFullYear(),n=A.getMonth()+1,a=A.getDate(),r=l+"-"+(n<10?"0"+n:n)+"-"+(a<10?"0"+a:a);if(!e)return r;let C=A.getHours(),t=A.getMinutes(),s=A.getSeconds();return r+" "+(C<10?"0"+C:C)+":"+(t<10?"0"+t:t)+":"+(s<10?"0"+s:s)},addDays:function(e,A){if(!A)return e;let l=e.split(" ");e=new Date(new Date(e).setDate(new Date(e).getDate()+A));var n=e.getFullYear(),a=e.getMonth()+1;a<10&&(a="0"+a);var r=e.getDate();return r<10&&(r="0"+r),e=n+"-"+a+"-"+r,l.length==1?e:e+" "+l[1]}},tableData=()=>new Array(6).fill(0).map((A,l)=>{let n=base.getDate();return{日期:base.addDays(n,l*-1).replaceAll("-","."),部门:"公共事业部",收入:~~(Math.random()*1e3),支出:~~(Math.random()*1e3)}}),noticeData=()=>new Array(6).fill(0).map((A,l)=>{let n=base.getDate();return{id:l+1,name:"功能更新",title:"平台功能流程优化,新功能发布...",date:base.addDays(n,l*-1).replaceAll("-",".")}}),stepData=()=>{let e=new Array(5).fill(0).map((n,a)=>{let r=base.getDate();return base.addDays(r,a*-1)}),A=["提交订单","订单配货","厂家发货","物流运输","客户签收","订单完成"],l=["厂家已接到订单,预计20分钟将分配订单...","厂家正在拣货...","商品通知物流公司取件","物流已取件,商品正在运行途中","客户已签收","订单完成"];return e.map((n,a)=>({title:A[a],date:n,current:a==1,content:l[a]}))},form=e=>{let A=[{title:"日期"},{title:"部门"},{title:"收入"},{title:"支出"},{title:"消费"},{title:"余额"},{title:"地址",span:3},{title:"备注",span:3,rate:!1}];return e&&(A[A.length-1].title="同比增长",A[A.length-1].rate=!0),A},formData=e=>{let l={日期:base.getDate().replaceAll("-","."),部门:"公共事业部",收入:~~(Math.random()*1e3),支出:~~(Math.random()*1e3),消费:~~(Math.random()*1e3),余额:~~(Math.random()*1e3),地址:"北京市海淀区中关村南大街33号10层1001室"};return e?l.同比增长=65:l.备注="这家伙很懒,没有留下任何可以看的说明信息...",l},rankingData=()=>[{name:"合格率",value:95},{name:"成品率",value:80},{name:"送检率",value:70},{name:"良品率",value:60},{name:"抽检率",value:50},{name:"破损率",value:30},{name:"其他",value:25}],barLineData=()=>[{date:"2024.01",入库数量:30,出库数量:0},{date:"2024.02",入库数量:760,出库数量:560},{date:"2024.03",入库数量:450,出库数量:789},{date:"2024.04",入库数量:700,出库数量:280},{date:"2024.05",入库数量:23,出库数量:800},{date:"2024.06",入库数量:550,出库数量:470},{date:"2024.07",入库数量:400,出库数量:210},{date:"2024.08",入库数量:340,出库数量:545},{date:"2024.09",入库数量:480,出库数量:100},{date:"2024.10",入库数量:120,出库数量:310},{date:"2024.11",入库数量:20,出库数量:230},{date:"2024.12",入库数量:0,出库数量:50}],pieData=()=>[{value:1e3,name:"排产数量"},{value:700,name:"计划数量"},{value:450,name:"成品数量"},{value:300,name:"报废数量"},{value:820,name:"入库数量"}],color=["#7020ff","#2EC7C9","#c3a4ff","#00d4f9","#3281ff","#a4dafe","#B6A2DE","#5AB1EF","#FFB980","#8D98B3","#48B3C2","#F7A35C","#A2D4E6","#B5C334","#29dbea"];function line(){return{title:{text:"收支记录",textStyle:{fontSize:16}},tooltip:{trigger:"axis"},legend:{padding:5,textStyle:{fontSize:12},itemHeight:9,itemWidth:12,icon:"roundRect",data:[]},grid:{left:40,bottom:20,top:40,right:10},xAxis:{show:!0,axisTick:{show:!1},axisLine:{show:!1},splitLine:{show:!1},type:"category",data:[],color:"#a7a7a7"},yAxis:{splitNumber:3,splitLine:{show:!1},type:"value",axisLabel:{color:"#a7a7a7"}},series:[]}}function series(){return[{name:"收入",type:"line",smooth:!0,lineStyle:{shadowOffsetX:0,shadowOffsetY:6,shadowBlur:8,shadowColor:"#e3d6fd"},stack:"total",showSymbol:!1,label:{show:!0,position:"top"},emphasis:{focus:"series"},showBackground:!1,itemStyle:{borderRadius:[6]},color:"#2196F3",data:[]},{name:"支出",type:"line",smooth:!0,lineStyle:{shadowOffsetX:0,shadowOffsetY:7,shadowBlur:8,shadowColor:"#9fceff"},stack:"total",itemStyle:{},color:"#5470c6",showSymbol:!1,label:{show:!0,position:"top"},emphasis:{focus:"series"},showBackground:!1,itemStyle:{borderRadius:[6]},data:[]}]}function initLegend(e,A,l,n){if(l.legend=="-1")e.legend=null;else switch(e.legend.data=n||[],e.legend.icon=l.legendShape,e.legend.itemWidth=l.legendSize,e.legend.itemHeight=l.legendSize,n&&(e.xAxis.splitLine||(e.xAxis.splitLine={}),e.yAxis.splitLine||(e.yAxis.splitLine={}),e.xAxis.splitLine.show=!!l.xLine,e.yAxis.splitLine.show=!!l.yLine),Object.assign(e.grid,l.grid||{}),l.legend){case"left":e.legend.left="left",e.legend.orient="horizontal",delete e.legend.top,delete e.legend.right,delete e.legend.bottom;break;case"leftVertical":case"leftVerticalCenter":e.legend.left="left",e.legend.orient="vertical",l.legend=="leftVerticalCenter"&&(e.legend.top="center"),delete e.legend.right,delete e.legend.bottom;break;case"center":delete e.legend.right,delete e.legend.left,e.legend.orient="horizontal",delete e.legend.top;break;case"right":e.legend.right="left",delete e.legend.left,e.legend.orient="horizontal",delete e.legend.top,delete e.legend.bottom;break;case"rightVertical":case"rightVerticalCenter":e.legend.right="right",delete e.legend.left,e.legend.orient="vertical",delete e.legend.top,delete e.legend.bottom,l.legend=="rightVerticalCenter"&&(e.legend.top="center");break;case"buttom":delete e.legend.right,delete e.legend.left,e.legend.orient="horizontal",delete e.legend.top,e.legend.bottom="bottom";break}}function init$2(e,A){let l=line();if(l.title.text=e.title,!A||!Array.isArray(A)||A.length==0)return l;const n=series();let a=Object.keys(A[0]),r=[],C=[];C=new Array(a.length-1).fill({}).map((s,g)=>{let d=n[g];return d?(d.name=a[g+1],d.label.show=!!e.showLabel,d.showSymbol=!!e.showLabel,d.stack=e.stack?"total":"",e.stack?(d.type="bar",d.itemStyle.borderRadius=[0]):d.itemStyle.borderRadius=[e.radius],d):{name:"名称",type:"line",smooth:!0,lineStyle:{shadowOffsetX:0,shadowOffsetY:6,shadowBlur:8,shadowColor:"#e3d6fd"},stack:e.stack?"total":"",showSymbol:!!e.showLabel,label:{show:!!e.showLabel,position:"top"},emphasis:{focus:"series"},color:color[g+1],showBackground:!1,itemStyle:{borderRadius:e.stack?[0]:[e.radius]},data:[]}});let t=a.slice(1);for(let s=0;s<A.length;s++){const g=A[s];r.push(g[a[0]]);for(let d=1;d<a.length;d++){let u=C[d-1];u.data.push(g[a[d]]),u.name=a[d]}}return C.forEach(s=>{s.barMaxWidth=e.barMaxWidth}),l.series=C,e.showXData?(l.xAxis.data=r,l.xAxis.type="category",l.yAxis.data=null):(l.xAxis.data=null,l.xAxis.type=null,l.yAxis.type="",l.yAxis.data=r),initLegend(l,A,e,t),l}const BarLineChartOptionn={init:init$2,initLegend};function init$1(e,A){A.reduce((n,a)=>n+a.value,0);let l={color,tooltip:{trigger:"item"},title:{textStyle:{fontSize:16},text:e.title,zlevel:0},grid:{},legend:{icon:"circle",itemWidth:8,itemHeight:8,orient:"vertical",right:10,top:"center",textStyle:{fontSize:11}},graphic:{type:"text",left:"center",top:"center",style:{textAlign:"center",fill:"#000",fontSize:20}},series:[{type:"pie",radius:[(e.size1||60)+"%",(e.size2||70)+"%"],center:[(e.left||40)+"%",(e.top||50)+"%"],avoidLabelOverlap:!1,label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontWeight:"bold"}},labelLine:{show:!1},data:A}]};return BarLineChartOptionn.initLegend(l,A,e),e.showLabel&&(l.series[0].label={show:!0,position:"outside"},l.series[0].labelLine={show:!0}),e.legend=="buttom"&&(l.series[0].center=["50%","45%"]),l.legend.data=null,console.log(JSON.stringify(l)),l}const pie={init:init$1};function init(e,A){return{title:{text:e.title,textStyle:{fontSize:13}},series:[{title:{offsetCenter:[0,"80%"],fontSize:14},radius:"90%",startAngle:220,type:"gauge",axisLine:{lineStyle:{width:10,color:[[.3,"#409eff"],[.7,"#2EC7C9"],[1,"#FFB980"]]}},center:["50%","60%"],pointer:{itemStyle:{color:"auto"}},axisTick:{distance:-30,length:8,lineStyle:{color:"#fff",width:2}},splitLine:{distance:-30,length:30,lineStyle:{color:"#fff",width:4}},axisLabel:{color:"inherit",distance:25,fontSize:12},detail:{valueAnimation:!0,offsetCenter:[0,"55%"],fontSize:18},data:[{value:A.value,name:A.name||"文本"}]}]}}const gauge={init};new Array(10).fill(0).map((e,A)=>{let l=getDate();return addDays(l,A*-1)});function addDays(e,A){if(!A)return e;let l=e.split(" ");e=new Date(new Date(e).setDate(new Date(e).getDate()+A));var n=e.getFullYear(),a=e.getMonth()+1;a<10&&(a="0"+a);var r=e.getDate();return r<10&&(r="0"+r),e=n+"-"+a+"-"+r,l.length==1?e:e+" "+l[1]}function getDate(e){let A=new Date,l=A.getFullYear(),n=A.getMonth()+1,a=A.getDate();return l+"-"+(n<10?"0"+n:n)+"-"+(a<10?"0"+a:a)}function gridLine(){return{grid:{top:0,left:0,right:0,bottom:0},xAxis:{type:"category",show:!1,axisTick:{show:!1},axisLine:{show:!1}},yAxis:{type:"value",show:!1,splitLine:{show:!1},axisTick:{show:!1},axisLine:{show:!1}},series:[{data:[],type:"line",smooth:!0,color:"#409eff",barMaxWidth:15,symbolSize:0,lineStyle:{width:.5},areaStyle:{opacity:.8,color:new echarts__namespace.graphic.LinearGradient(0,0,0,1,[{offset:0,color:"rgba(135, 206, 235, 0.7)"},{offset:1,color:"rgba(240, 248, 255, 0.7)"}])}}]}}const options={gridLine},_export_sfc=(e,A)=>{const l=e.__vccOpts||e;for(const[n,a]of A)l[n]=a;return l},_sfc_main$d={props:{icon:{type:String,default:""},title:{type:String,default:""},text:{type:String,default:"未定义名称"}}},_hoisted_1$d={class:"v-header"},_hoisted_2$c={class:"v-left-text"},_hoisted_3$c={class:"content"},_hoisted_4$9={class:"v-right-content"};function _sfc_render$1(e,A,l,n,a,r){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$d,[vue.createElementVNode("div",_hoisted_2$c,[vue.createElementVNode("i",{size:"18",class:vue.normalizeClass([l.icon,"h-icon"])},null,2),vue.createElementVNode("span",null,vue.toDisplayString(l.title||l.text),1)]),vue.createElementVNode("div",_hoisted_3$c,[vue.renderSlot(e.$slots,"content",{},void 0,!0)]),vue.createElementVNode("div",_hoisted_4$9,[vue.renderSlot(e.$slots,"default",{},void 0,!0)])])}const VolHeader=_export_sfc(_sfc_main$d,[["render",_sfc_render$1],["__scopeId","data-v-dac9b261"]]),__vite_glob_0_0$1="",__vite_glob_0_1$1="",__vite_glob_0_2$1="",__vite_glob_0_3$1="",__vite_glob_0_4$1="",__vite_glob_0_5$1="",__vite_glob_0_6$1="",__vite_glob_0_7$1="",__vite_glob_0_8$1="",__vite_glob_0_9$1="",__vite_glob_0_10$1="",__vite_glob_0_11$1="",__vite_glob_0_12$1="",__vite_glob_0_13$1="",__vite_glob_0_14$1="",__vite_glob_0_15$1="",__vite_glob_0_16$1="",_hoisted_1$c={class:"com-list"},_hoisted_2$b={class:"com-item-name"},_hoisted_3$b=["src"],_sfc_main$c={__name:"component",emits:["end"],setup(e,{emit:A}){vue.getCurrentInstance();const l=g=>new URL(Object.assign({"./imgs/bar.png":__vite_glob_0_0$1,"./imgs/calendar.png":__vite_glob_0_1$1,"./imgs/card.png":__vite_glob_0_2$1,"./imgs/form.png":__vite_glob_0_3$1,"./imgs/gauge.png":__vite_glob_0_4$1,"./imgs/grid01.png":__vite_glob_0_5$1,"./imgs/grid02.png":__vite_glob_0_6$1,"./imgs/grid03.png":__vite_glob_0_7$1,"./imgs/grid04.png":__vite_glob_0_8$1,"./imgs/grid05.png":__vite_glob_0_9$1,"./imgs/line.png":__vite_glob_0_10$1,"./imgs/notice.png":__vite_glob_0_11$1,"./imgs/pie1.png":__vite_glob_0_12$1,"./imgs/rankinglist02.png":__vite_glob_0_13$1,"./imgs/rankinglist03.png":__vite_glob_0_14$1,"./imgs/step.png":__vite_glob_0_15$1,"./imgs/table.png":__vite_glob_0_16$1})[`./imgs/${g}`],typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:_documentCurrentScript&&_documentCurrentScript.src||new URL("vol-dashboard.umd.cjs",document.baseURI).href).href,n=vue.ref([{title:"折线图",type:"line",img:"line.png",valueType:"array",h:12,w:12,data:barLineData},{title:"柱状图",type:"bar",img:"bar.png",barMaxWidth:60,valueType:"array",h:12,w:12,data:barLineData},{title:"饼状图",type:"pie",valueType:"array",h:14,w:12,left:40,top:48,size1:50,size2:70,x:"30%",y:"40%",showTotal:1,totalSize:25,subTitle:"标题",subTitleSize:15,showLabel:!0,showLegendValue:1,showLegendUnit:"",showLegendRate:1,numLen:2,img:"pie1.png",data:pieData},{title:"栅格01",type:"grid",valueType:"array",h:8,w:24,img:"grid01.png",data:()=>[{name:"待处理事项",value:1e3},{name:"已处理事项",value:2200},{name:"待回复消息",value:2800},{name:"已回复消息",value:1500},{name:"待审批事项",value:1800},{name:"已审批事项",value:1200},{name:"数量总计",value:9e3}]},{type:"gridBar",img:"grid02.png",title:"栅格柱状图",valueType:"json",data:()=>({value:9600,unit:"件",bottom:["完成数量:6500","未完成数量:3100"],data:[462,222,388,267,142,491,376,347,120,350,146,355,219,112,142,491,376,347]}),h:8,w:8},{title:"栅格折线图",type:"gridLine",img:"grid03.png",value:2400,valueType:"json",unit:"台",bottom:["在线数量:1100","离线数量:1300"],data:()=>({value:8200,unit:"件",bottom:["完成数量:6500","未完成数量:3100"],data:[362,222,388,267,142,491,376,347,120,350,146,355,219,112,142,491,376,347]}),h:8,w:8},{title:"栅格04",type:"gridText",h:5,w:24,valueType:"array",img:"grid04.png",imgSize:40,icon:["el-icon-coin","el-icon-monitor","el-icon-data-analysis","el-icon-news","el-icon-receiving"],isFont:!0,data:()=>[{name:"全部数量",value:7200},{name:"待办数量",value:2e3},{name:"已办数量",value:3e3},{name:"延期数量",value:1e3},{name:"转办数量",value:1200}]},{title:"栅格05",type:"gridText",img:"grid05.png",isFont:!1,h:5,w:24,valueType:"array",imgSize:45,icon:["27.png","31.png","17.png","32.png","34.png"],data:()=>[{name:"全部数量",value:7200},{name:"待办数量",value:2e3},{name:"已办数量",value:3e3},{name:"延期数量",value:1e3},{name:"转办数量",value:1200}]},{title:"仪表盘",type:"gauge",h:10,w:6,img:"gauge.png",valueType:"json",data:{value:70,name:"汇总"}},{title:"表格",type:"table",h:15,w:12,valueType:"array",data:tableData,img:"table.png"},{title:"表单",type:"form",h:10,w:13,column:3,valueType:"json",form,data:formData,img:"form.png"},{title:"卡片",type:"card",h:12,w:13,column:2,valueType:"json",form,data:formData,img:"card.png"},{title:"排行统计",options:{},h:12,w:7,unit:"%",valueType:"array",strokeWidth:10,type:"ranking",data:rankingData,img:"rankinglist03.png"},{title:"排行统计-01",type:"ranking",top:!0,h:16,w:7,valueType:"array",unit:"%",strokeWidth:6,data:rankingData,img:"rankinglist02.png"},{title:"日历",type:"calendar",h:20,w:10,img:"calendar.png"},{title:"进度步骤条",valueType:"array",type:"step",data:stepData,h:22,w:7,img:"step.png"},{title:"通知列表",type:"notice",valueType:"array",h:14,w:12,img:"notice.png",data:noticeData}]),a=[...n.value],r={preventOnFilter:!1,sort:!1,disabled:!1,ghostClass:"tt",forceFallback:!0},C=(g,d,u,p)=>{},t=A,s=(g,d)=>{n.value=[...a],t("end",n.value[g.oldIndex])};return(g,d)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$c,[vue.createVNode(vue.unref(vueDraggableNext.VueDraggableNext),{onEnd:s,onStart:C,modelValue:n.value,"onUpdate:modelValue":d[0]||(d[0]=u=>n.value=u),options:r},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(n.value,(u,p)=>(vue.openBlock(),vue.createElementBlock("li",{key:p,class:"com-item"},[vue.createElementVNode("div",_hoisted_2$b,vue.toDisplayString(u.title),1),vue.createElementVNode("img",{src:l(u.img)},null,8,_hoisted_3$b)]))),128))]),_:1},8,["modelValue"])]))}},VolComponent=_export_sfc(_sfc_main$c,[["__scopeId","data-v-6f38ba2e"]]),_sfc_main$b={props:{icon:{type:String,default:""},title:{type:String,default:""},border:{type:Boolean,default:!0},text:{type:String,default:"未定义名称"}}},_withScopeId$4=e=>(vue.pushScopeId("data-v-eac0b45f"),e=e(),vue.popScopeId(),e),_hoisted_1$b=_withScopeId$4(()=>vue.createElementVNode("div",{class:"header-border"},null,-1)),_hoisted_2$a={class:"v-left-text"},_hoisted_3$a={class:"content"},_hoisted_4$8={class:"v-right-content"};function _sfc_render(e,A,l,n,a,r){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["v-header",{"header-boder":l.border}])},[_hoisted_1$b,vue.createElementVNode("div",_hoisted_2$a,[vue.createElementVNode("span",null,vue.toDisplayString(l.title||l.text),1)]),vue.createElementVNode("div",_hoisted_3$a,[vue.renderSlot(e.$slots,"content",{},void 0,!0)]),vue.createElementVNode("div",_hoisted_4$8,[vue.renderSlot(e.$slots,"default",{},void 0,!0)])],2)}const VolTitle=_export_sfc(_sfc_main$b,[["render",_sfc_render],["__scopeId","data-v-eac0b45f"]]),_hoisted_1$a={class:"vol-data-table"},_hoisted_2$9={class:"vol-da-table"},_hoisted_3$9={key:0,style:{width:"20px"}},_hoisted_4$7={key:0,style:{width:"20px"}},_sfc_main$a={__name:"VolDataTable",props:{index:{type:Boolean,default:!0},title:{type:String,default:""},data:{type:Array,default:()=>[]}},setup(e){vue.getCurrentInstance();const A=e,l=vue.computed(()=>A.data.length?Object.keys(A.data[0]):[]);return(n,a)=>{const r=vue.resolveComponent("el-scrollbar");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$a,[vue.createVNode(VolTitle,{icon:"el-icon-menu",title:n.$ts(e.title)},null,8,["title"]),vue.createVNode(r,{style:{flex:"1",height:"0",padding:"0 10px"}},{default:vue.withCtx(()=>[vue.createElementVNode("table",_hoisted_2$9,[vue.createElementVNode("thead",null,[e.index?(vue.openBlock(),vue.createElementBlock("td",_hoisted_3$9,"#")):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(l.value,(C,t)=>(vue.openBlock(),vue.createElementBlock("td",{key:t},vue.toDisplayString(n.$ts(C)),1))),128))]),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.data,(C,t)=>(vue.openBlock(),vue.createElementBlock("tr",{key:t},[e.index?(vue.openBlock(),vue.createElementBlock("td",_hoisted_4$7,vue.toDisplayString(t+1)+".",1)):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(l.value,(s,g)=>(vue.openBlock(),vue.createElementBlock("td",{key:g},vue.toDisplayString(n.$ts(C[s])),1))),128))]))),128))])]),_:1})])}}},VolDataTable=_export_sfc(_sfc_main$a,[["__scopeId","data-v-f673e7a9"]]),_hoisted_1$9={class:"cell-item"},_hoisted_2$8={key:0},_hoisted_3$8={key:1},_sfc_main$9={__name:"VolDataForm",props:{title:{type:String,default:""},border:{type:Boolean,default:!0},column:{type:Number,default:3},form:{type:Array,default:()=>[]},data:{type:Object,default:()=>({})}},setup(e){return vue.getCurrentInstance(),(A,l)=>{const n=vue.resolveComponent("el-progress"),a=vue.resolveComponent("el-descriptions-item"),r=vue.resolveComponent("el-descriptions"),C=vue.resolveComponent("el-scrollbar");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vol-data-table",{"vol-data-table-card":!e.border}])},[vue.createVNode(VolTitle,{icon:"el-icon-menu",title:A.$ts(e.title)},null,8,["title"]),vue.createVNode(C,{style:{flex:"1",height:"0",padding:"0 10px"}},{default:vue.withCtx(()=>[vue.createVNode(r,{class:"desc-top",column:e.column,size:"default",border:e.border},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.form,(t,s)=>(vue.openBlock(),vue.createBlock(a,{key:s,"min-width":60,"label-align":"left",span:t.span,"label-class-name":t.rate?"item-fx":""},{label:vue.withCtx(()=>[vue.createElementVNode("label",_hoisted_1$9,vue.toDisplayString(A.$ts(t.title)),1),t.rate&&e.data[t.title]?(vue.openBlock(),vue.createBlock(n,{key:0,percentage:e.data[t.title]},null,8,["percentage"])):vue.createCommentVNode("",!0)]),default:vue.withCtx(()=>[t.rate&&e.data[t.title]?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$8)):(vue.openBlock(),vue.createElementBlock("span",_hoisted_3$8,vue.toDisplayString(e.data[t.title]),1))]),_:2},1032,["span","label-class-name"]))),128))]),_:1},8,["column","border"])]),_:1})],2)}}},VolDataForm=_export_sfc(_sfc_main$9,[["__scopeId","data-v-05075b73"]]),_withScopeId$3=e=>(vue.pushScopeId("data-v-74dd5595"),e=e(),vue.popScopeId(),e),_hoisted_1$8={class:"vol-container-step"},_hoisted_2$7={class:"title"},_hoisted_3$7={class:"v-steps"},_hoisted_4$6=_withScopeId$3(()=>vue.createElementVNode("div",{class:"step-line"},null,-1)),_hoisted_5$6=_withScopeId$3(()=>vue.createElementVNode("i",{class:"step-circle"},null,-1)),_hoisted_6$5={class:"step-title"},_hoisted_7$3={key:0,class:"step-date"},_hoisted_8$2={class:"step-content"},_sfc_main$8={__name:"VolDataStep",props:{title:{type:String,default:""},data:{type:Array,default:()=>[]}},setup(e){return vue.getCurrentInstance(),(A,l)=>{const n=vue.resolveComponent("el-scrollbar");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$8,[vue.createElementVNode("div",_hoisted_2$7,[vue.createVNode(VolTitle,{icon:"el-icon-menu",title:e.title},null,8,["title"])]),vue.createVNode(n,{style:{flex:"1",height:"1"}},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_3$7,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.data,(a,r)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["step-item",{"step-item-current":a.current}]),key:r},[_hoisted_4$6,_hoisted_5$6,vue.createElementVNode("div",_hoisted_6$5,vue.toDisplayString(a.title),1),a.date?(vue.openBlock(),vue.createElementBlock("div",_hoisted_7$3,"时间："+vue.toDisplayString(a.date),1)):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_8$2,vue.toDisplayString(a.content),1)],2))),128))])]),_:1})])}}},VolDataStep=_export_sfc(_sfc_main$8,[["__scopeId","data-v-74dd5595"]]),_hoisted_1$7={class:"fx-ranking"},_hoisted_2$6={class:"tx-name"},_hoisted_3$6={class:"fx-item-1"},_sfc_main$7={__name:"VolDataRanking",props:{title:{type:String,default:"合格率统计"},lalelPosition:{type:String,default:"left"},border:{type:Boolean,default:!0},fontColor:{type:Array,default:()=>[]},titleColor:{type:Array,default:()=>[]},unit:{type:String,default:""},strokeWidth:{type:Number,default:10},data:{type:Array,default:()=>[]}},setup(e){vue.getCurrentInstance();const A=e,l=a=>{let r=Math.max(...A.data.map(C=>C.value));return r>100?a.value/r*100:a.value},n=vue.computed(()=>A.data);return(a,r)=>{const C=vue.resolveComponent("el-progress"),t=vue.resolveComponent("el-scrollbar");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$7,[vue.createVNode(VolTitle,{icon:"el-icon-menu",title:e.title},null,8,["title"]),vue.createVNode(t,{style:{flex:"1",height:"0"}},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:vue.normalizeClass({"ranking-top":e.lalelPosition=="top"})},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(n.value,(s,g)=>(vue.openBlock(),vue.createElementBlock("div",{class:"fx",key:g},[vue.createElementVNode("div",_hoisted_2$6,vue.toDisplayString(s.name),1),vue.createElementVNode("div",_hoisted_3$6,[vue.createVNode(C,{"stroke-width":e.strokeWidth,"text-inside":!1,percentage:l(s),color:s.bgColor||e.titleColor[g]},{default:vue.withCtx(()=>[vue.createElementVNode("span",{class:"rk-txt",style:vue.normalizeStyle({color:s.fontColor||e.fontColor[g]})},vue.toDisplayString(s.value)+vue.toDisplayString(e.unit),5)]),_:2},1032,["stroke-width","percentage","color"])])]))),128))],2)]),_:1})])}}},VolDataRanking=_export_sfc(_sfc_main$7,[["__scopeId","data-v-a477c41e"]]),_hoisted_1$6={class:"fx-ranking"},_hoisted_2$5={class:"h-bottom margin-item"},_hoisted_3$5={class:"title"},_hoisted_4$5=["onClick"],_hoisted_5$5={class:"h-bottom-txt"},_hoisted_6$4={class:"h-bottom-qty"},_sfc_main$6={__name:"VolDataGrid",props:{title:{type:String,default:"栅格"},lalelPosition:{type:String,default:"left"},border:{type:Boolean,default:!0},data:{type:Array,default:()=>[]}},emits:["componentItemClick"],setup(e,{emit:A}){vue.getCurrentInstance();const l=e,n=A,a=(r,C)=>{n("componentItemClick",r,l.data)};return(r,C)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$6,[vue.createElementVNode("div",_hoisted_2$5,[vue.createElementVNode("div",_hoisted_3$5,vue.toDisplayString(r.$ts(e.title)),1),vue.createElementVNode("div",{class:"grid-list",style:vue.normalizeStyle({"grid-template-columns":" repeat("+e.data.length+", auto)"})},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.data,(t,s)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["item","item"+(s+1)]),key:s,onClick:g=>a(t)},[vue.createElementVNode("div",_hoisted_5$5,vue.toDisplayString(t.name),1),vue.createElementVNode("div",_hoisted_6$4,vue.toDisplayString((t.value+"").replace(/\B(?=(\d{3})+(?!\d))/g,",")),1)],10,_hoisted_4$5))),128))],4)])]))}},VolDataGrid=_export_sfc(_sfc_main$6,[["__scopeId","data-v-9708cc1f"]]),__vite_glob_0_0="",__vite_glob_0_1="",__vite_glob_0_2="",__vite_glob_0_3="",__vite_glob_0_4="",__vite_glob_0_5="",__vite_glob_0_6="",__vite_glob_0_7="",__vite_glob_0_8="",__vite_glob_0_9="",__vite_glob_0_10="",__vite_glob_0_11="",__vite_glob_0_12="",__vite_glob_0_13="",__vite_glob_0_14="",__vite_glob_0_15="",__vite_glob_0_16="",__vite_glob_0_17="",__vite_glob_0_18="",__vite_glob_0_19="",__vite_glob_0_20="",__vite_glob_0_21="",__vite_glob_0_22="",__vite_glob_0_23="",__vite_glob_0_24="",__vite_glob_0_25="",__vite_glob_0_26="",__vite_glob_0_27="",__vite_glob_0_28="",__vite_glob_0_29="",__vite_glob_0_30="",__vite_glob_0_31="",__vite_glob_0_32="",__vite_glob_0_33="",__vite_glob_0_34="",_withScopeId$2=e=>(vue.pushScopeId("data-v-42778c5a"),e=e(),vue.popScopeId(),e),_hoisted_1$5={class:"grid-text-list"},_hoisted_2$4=["onClick"],_hoisted_3$4={class:"content"},_hoisted_4$4={class:"content-right"},_hoisted_5$4={class:"f-icon"},_hoisted_6$3=["src"],_hoisted_7$2=_withScopeId$2(()=>vue.createElementVNode("div",{class:"mouse-enter-class"},null,-1)),_sfc_main$5={__name:"VolDataGridText",props:{data:{type:Array,default:()=>[]},icon:{type:Array,default:()=>[]},showNumber:{type:Boolean,default:!0},size:{type:Number,default:40},font:{type:Boolean,default:!0},fontColor:{type:String,default:""},titleColor:{type:String,default:""},bgColor:{type:String,default:""}},emits:["componentItemClick"],setup(e,{emit:A}){const l=e;vue.reactive([]),vue.onMounted(()=>{}),vue.getCurrentInstance();const n=C=>new URL(Object.assign({"./icon/1.png":__vite_glob_0_0,"./icon/10.png":__vite_glob_0_1,"./icon/11.png":__vite_glob_0_2,"./icon/12.png":__vite_glob_0_3,"./icon/13.png":__vite_glob_0_4,"./icon/14.png":__vite_glob_0_5,"./icon/15.png":__vite_glob_0_6,"./icon/16.png":__vite_glob_0_7,"./icon/17.png":__vite_glob_0_8,"./icon/18.png":__vite_glob_0_9,"./icon/19.png":__vite_glob_0_10,"./icon/2.png":__vite_glob_0_11,"./icon/20.png":__vite_glob_0_12,"./icon/21.png":__vite_glob_0_13,"./icon/22.png":__vite_glob_0_14,"./icon/23.png":__vite_glob_0_15,"./icon/24.png":__vite_glob_0_16,"./icon/25.png":__vite_glob_0_17,"./icon/26.png":__vite_glob_0_18,"./icon/27.png":__vite_glob_0_19,"./icon/28.png":__vite_glob_0_20,"./icon/29.png":__vite_glob_0_21,"./icon/3.png":__vite_glob_0_22,"./icon/30.png":__vite_glob_0_23,"./icon/31.png":__vite_glob_0_24,"./icon/32.png":__vite_glob_0_25,"./icon/33.png":__vite_glob_0_26,"./icon/34.png":__vite_glob_0_27,"./icon/35.png":__vite_glob_0_28,"./icon/4.png":__vite_glob_0_29,"./icon/5.png":__vite_glob_0_30,"./icon/6.png":__vite_glob_0_31,"./icon/7.png":__vite_glob_0_32,"./icon/8.png":__vite_glob_0_33,"./icon/9.png":__vite_glob_0_34})[`./icon/${C}`],typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:_documentCurrentScript&&_documentCurrentScript.src||new URL("vol-dashboard.umd.cjs",document.baseURI).href).href,a=A,r=C=>{a("componentItemClick",C,l.data)};return(C,t)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$5,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.data,(s,g)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["list-item",{"grid-text-title":!e.showNumber}]),style:vue.normalizeStyle({background:e.bgColor||"#fff"}),onClick:d=>r(s),key:g},[vue.createElementVNode("div",_hoisted_3$4,[vue.createElementVNode("div",_hoisted_4$4,[vue.createElementVNode("div",{class:"vol-grid-item-title",style:vue.normalizeStyle({color:e.titleColor||"#767676"})},vue.toDisplayString(s.name||s.title),5),vue.createElementVNode("div",{class:"vol-grid-item-value",style:vue.normalizeStyle({color:e.fontColor||"#505050"})},vue.toDisplayString(((s.value||0)+"").replace(/\B(?=(\d{3})+(?!\d))/g,",")),5),vue.createElementVNode("div",_hoisted_5$4,[e.font?(vue.openBlock(),vue.createElementBlock("i",{key:0,class:vue.normalizeClass(e.icon[0]),style:vue.normalizeStyle({"font-size":e.size+"px"})},null,6)):(vue.openBlock(),vue.createElementBlock("img",{key:1,style:vue.normalizeStyle({width:e.size+"px"}),src:n(e.icon[0]||"27.png")},null,12,_hoisted_6$3))])]),_hoisted_7$2])],14,_hoisted_2$4))),128))]))}},VolDataGridText=_export_sfc(_sfc_main$5,[["__scopeId","data-v-42778c5a"]]),iconFont=["el-icon-platform-eleme","el-icon-eleme","el-icon-delete-solid","el-icon-delete","el-icon-s-tools","el-icon-setting","el-icon-user-solid","el-icon-user","el-icon-phone","el-icon-phone-outline","el-icon-more","el-icon-more-outline","el-icon-star-on","el-icon-star-off","el-icon-s-goods","el-icon-goods","el-icon-warning","el-icon-warning-outline","el-icon-question","el-icon-info","el-icon-remove","el-icon-circle-plus","el-icon-success","el-icon-error","el-icon-zoom-in","el-icon-zoom-out","el-icon-remove-outline","el-icon-circle-plus-outline","el-icon-circle-check","el-icon-circle-close","el-icon-s-help","el-icon-help","el-icon-minus","el-icon-plus","el-icon-check","el-icon-close","el-icon-picture","el-icon-picture-outline","el-icon-picture-outline-round","el-icon-upload","el-icon-upload2","el-icon-download","el-icon-camera-solid","el-icon-camera","el-icon-video-camera-solid","el-icon-video-camera","el-icon-message-solid","el-icon-bell","el-icon-s-cooperation","el-icon-s-order","el-icon-s-platform","el-icon-s-fold","el-icon-s-unfold","el-icon-s-operation","el-icon-s-promotion","el-icon-s-home","el-icon-s-release","el-icon-s-ticket","el-icon-s-management","el-icon-s-open","el-icon-s-shop","el-icon-s-marketing","el-icon-s-flag","el-icon-s-comment","el-icon-s-finance","el-icon-s-claim","el-icon-s-custom","el-icon-s-opportunity","el-icon-s-data","el-icon-s-check","el-icon-s-grid","el-icon-menu","el-icon-share","el-icon-d-caret","el-icon-caret-left","el-icon-caret-right","el-icon-caret-bottom","el-icon-caret-top","el-icon-bottom-left","el-icon-bottom-right","el-icon-back","el-icon-right","el-icon-bottom","el-icon-top","el-icon-top-left","el-icon-top-right","el-icon-arrow-left","el-icon-arrow-right","el-icon-arrow-down","el-icon-arrow-up","el-icon-d-arrow-left","el-icon-d-arrow-right","el-icon-video-pause","el-icon-video-play","el-icon-refresh","el-icon-refresh-right","el-icon-refresh-left","el-icon-finished","el-icon-sort","el-icon-sort-up","el-icon-sort-down","el-icon-rank","el-icon-loading","el-icon-view","el-icon-c-scale-to-original","el-icon-date","el-icon-edit","el-icon-edit-outline","el-icon-folder","el-icon-folder-opened","el-icon-folder-add","el-icon-folder-remove","el-icon-folder-delete","el-icon-folder-checked","el-icon-tickets","el-icon-document-remove","el-icon-document-delete","el-icon-document-copy","el-icon-document-checked","el-icon-document","el-icon-document-add","el-icon-printer","el-icon-paperclip","el-icon-takeaway-box","el-icon-search","el-icon-monitor","el-icon-attract","el-icon-mobile","el-icon-scissors","el-icon-umbrella","el-icon-headset","el-icon-brush","el-icon-mouse","el-icon-coordinate","el-icon-magic-stick","el-icon-reading","el-icon-data-line","el-icon-data-board","el-icon-pie-chart","el-icon-data-analysis","el-icon-collection-tag","el-icon-film","el-icon-suitcase","el-icon-suitcase-1","el-icon-receiving","el-icon-collection","el-icon-files","el-icon-notebook-1","el-icon-notebook-2","el-icon-toilet-paper","el-icon-office-building","el-icon-school","el-icon-table-lamp","el-icon-house","el-icon-no-smoking","el-icon-smoking","el-icon-shopping-cart-full","el-icon-shopping-cart-1","el-icon-shopping-cart-2","el-icon-shopping-bag-1","el-icon-shopping-bag-2","el-icon-sold-out","el-icon-sell","el-icon-present","el-icon-box","el-icon-bank-card","el-icon-money","el-icon-coin","el-icon-wallet","el-icon-discount","el-icon-price-tag","el-icon-news","el-icon-guide","el-icon-male","el-icon-female","el-icon-thumb","el-icon-cpu","el-icon-link","el-icon-connection","el-icon-open","el-icon-turn-off","el-icon-set-up","el-icon-chat-round","el-icon-chat-line-round","el-icon-chat-square","el-icon-chat-dot-round","el-icon-chat-dot-square","el-icon-chat-line-square","el-icon-message","el-icon-postcard","el-icon-position","el-icon-turn-off-microphone","el-icon-microphone","el-icon-close-notification","el-icon-bangzhu","el-icon-time","el-icon-odometer","el-icon-crop","el-icon-aim","el-icon-switch-button","el-icon-full-screen","el-icon-copy-document","el-icon-mic","el-icon-stopwatch","el-icon-medal-1","el-icon-medal","el-icon-trophy","el-icon-trophy-1","el-icon-first-aid-kit","el-icon-discover","el-icon-place","el-icon-location","el-icon-location-outline","el-icon-location-information","el-icon-add-location","el-icon-delete-location","el-icon-map-location","el-icon-alarm-clock","el-icon-timer","el-icon-watch-1","el-icon-watch","el-icon-lock","el-icon-unlock","el-icon-key","el-icon-service","el-icon-mobile-phone","el-icon-bicycle","el-icon-truck","el-icon-ship","el-icon-basketball","el-icon-football","el-icon-soccer","el-icon-baseball","el-icon-wind-power","el-icon-light-rain","el-icon-lightning","el-icon-heavy-rain","el-icon-sunrise","el-icon-sunrise-1","el-icon-sunset","el-icon-sunny","el-icon-cloudy","el-icon-partly-cloudy","el-icon-cloudy-and-sunny","el-icon-moon","el-icon-moon-night","el-icon-dish","el-icon-dish-1","el-icon-food","el-icon-chicken","el-icon-fork-spoon","el-icon-knife-fork","el-icon-burger","el-icon-tableware","el-icon-sugar","el-icon-dessert","el-icon-ice-cream","el-icon-hot-water","el-icon-water-cup","el-icon-coffee-cup","el-icon-cold-drink","el-icon-goblet","el-icon-goblet-full","el-icon-goblet-square","el-icon-goblet-square-full","el-icon-refrigerator","el-icon-grape","el-icon-watermelon","el-icon-cherry","el-icon-apple","el-icon-pear","el-icon-orange","el-icon-coffee","el-icon-ice-tea","el-icon-ice-drink","el-icon-milk-tea","el-icon-potato-strips","el-icon-lollipop","el-icon-ice-cream-square","el-icon-ice-cream-round"],iconInfo={iconFont},_hoisted_1$4={class:"icons"},_hoisted_2$3=["onClick"],_hoisted_3$3={class:"icon-content"},_hoisted_4$3=["onClick"],_hoisted_5$3=["src"],_sfc_main$4={__name:"Icons",props:{onSelect:{type:Function,default:()=>""},data:{type:Array,default:()=>[]},font:{type:Boolean,default:!0}},setup(e){const A=e,l=iconInfo.iconFont,n=vue.ref([]);n.value=new Array(35).fill(0).map((t,s)=>({img:new URL(Object.assign({"./icon/1.png":__vite_glob_0_0,"./icon/10.png":__vite_glob_0_1,"./icon/11.png":__vite_glob_0_2,"./icon/12.png":__vite_glob_0_3,"./icon/13.png":__vite_glob_0_4,"./icon/14.png":__vite_glob_0_5,"./icon/15.png":__vite_glob_0_6,"./icon/16.png":__vite_glob_0_7,"./icon/17.png":__vite_glob_0_8,"./icon/18.png":__vite_glob_0_9,"./icon/19.png":__vite_glob_0_10,"./icon/2.png":__vite_glob_0_11,"./icon/20.png":__vite_glob_0_12,"./icon/21.png":__vite_glob_0_13,"./icon/22.png":__vite_glob_0_14,"./icon/23.png":__vite_glob_0_15,"./icon/24.png":__vite_glob_0_16,"./icon/25.png":__vite_glob_0_17,"./icon/26.png":__vite_glob_0_18,"./icon/27.png":__vite_glob_0_19,"./icon/28.png":__vite_glob_0_20,"./icon/29.png":__vite_glob_0_21,"./icon/3.png":__vite_glob_0_22,"./icon/30.png":__vite_glob_0_23,"./icon/31.png":__vite_glob_0_24,"./icon/32.png":__vite_glob_0_25,"./icon/33.png":__vite_glob_0_26,"./icon/34.png":__vite_glob_0_27,"./icon/35.png":__vite_glob_0_28,"./icon/4.png":__vite_glob_0_29,"./icon/5.png":__vite_glob_0_30,"./icon/6.png":__vite_glob_0_31,"./icon/7.png":__vite_glob_0_32,"./icon/8.png":__vite_glob_0_33,"./icon/9.png":__vite_glob_0_34})[`./icon/${s+1}.png`],typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:_documentCurrentScript&&_documentCurrentScript.src||new URL("vol-dashboard.umd.cjs",document.baseURI).href).href,name:s+1+".png"}));const a=vue.ref(-1),r=(t,s)=>{a.value=s;let g=A.data.indexOf(t);g==-1?A.data.push(t):A.data.splice(g,1)},C=t=>A.data.indexOf(t)>-1;return(t,s)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$4,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(l),(g,d)=>vue.withDirectives((vue.openBlock(),vue.createElementBlock("div",{onClick:u=>r(g,d),key:d,class:"icons-item"},[vue.createElementVNode("i",{class:vue.normalizeClass([g,C(g)?"active":""]),style:{"font-size":"32px"}},null,2),vue.createElementVNode("p",null,vue.toDisplayString(g),1)],8,_hoisted_2$3)),[[vue.vShow,e.font]])),128)),vue.withDirectives(vue.createElementVNode("div",_hoisted_3$3,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(n.value,(g,d)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["icon-item",[g,C(g.name)?"active-img":""]]),onClick:u=>r(g.name,d),key:d},[vue.createElementVNode("img",{src:g.img},null,8,_hoisted_5$3)],10,_hoisted_4$3))),128))],512),[[vue.vShow,!e.font]])]))}},VolIcon=_export_sfc(_sfc_main$4,[["__scopeId","data-v-59f22700"]]),filter=["全部","今天","近7天","本月","近1月","近半年","近一年"],_withScopeId$1=e=>(vue.pushScopeId("data-v-3c8c49e5"),e=e(),vue.popScopeId(),e),_hoisted_1$3={style:{"text-align":"left",display:"flex"}},_hoisted_2$2=_withScopeId$1(()=>vue.createElementVNode("label",{style:{"font-size":"14px"}},"已选图标：",-1)),_hoisted_3$2={key:0},_hoisted_4$2=["onClick"],_hoisted_5$2={key:1},_hoisted_6$2=["src","onClick"],_hoisted_7$1=_withScopeId$1(()=>vue.createElementVNode("span",{style:{"font-size":"13px",color:"darkgrey"}},"点击图标可删除",-1)),_hoisted_8$1={class:"dia-footer",style:{"text-align":"center"}},_hoisted_9$1=_withScopeId$1(()=>vue.createElementVNode("i",{class:"el-icon-close"},null,-1)),_hoisted_10$1=_withScopeId$1(()=>vue.createElementVNode("i",{class:"el-icon-plus"},null,-1)),_hoisted_11$1={class:"custom-tabs-label"},_hoisted_12$1=_withScopeId$1(()=>vue.createElementVNode("span",null,"基础设置",-1)),_hoisted_13$1={class:"params-group"},_hoisted_14$1={class:"filter-line"},_hoisted_15$1=_withScopeId$1(()=>vue.createElementVNode("div",null,[vue.createElementVNode("label",null,"默认条件")],-1)),_hoisted_16$1={class:"custom-tabs-label"},_hoisted_17$1=_withScopeId$1(()=>vue.createElementVNode("span",null,"属性设置",-1)),_hoisted_18$1={key:0,class:"params-group"},_hoisted_19$1={key:0},_hoisted_20$1={key:1,style:{position:"relative",top:"3px"}},_hoisted_21$1=["src"],_hoisted_22$1={class:"img-icon",style:{display:"flex"}},_hoisted_23$1=["onClick"],_hoisted_24={class:"img-icon",style:{display:"flex"}},_hoisted_25=["onClick"],_hoisted_26={class:"img-icon",style:{display:"flex"}},_hoisted_27=["onClick"],_hoisted_28={key:5},_hoisted_29={key:6,class:"params-group"},_hoisted_30={class:"params-group"},_hoisted_31={class:"params-group"},_hoisted_32={class:"params-group"},_hoisted_33={style:{"margin-top":"10px"},class:"params-group"},_hoisted_34={class:"fx"},_hoisted_35=_withScopeId$1(()=>vue.createElementVNode("label",{class:"title"},"小数位数",-1)),_hoisted_36={class:"custom-tabs-label"},_hoisted_37=_withScopeId$1(()=>vue.createElementVNode("span",null,"事件处理",-1)),_sfc_main$3={__name:"VolDataParams",props:{currentItem:{type:Object,default:()=>({icons:[]})}},emits:["change","apiSearchClick","sqlChange"],setup(e,{emit:A}){const l=e,n=vue.ref("基础设置"),a=filter,r=[{value:"-1",name:"隐藏图例"},{value:"left",name:"靠左"},{value:"leftVertical",name:"垂直靠左"},{value:"leftVerticalCenter",name:"垂直靠左居中"},{value:"center",name:"居中"},{value:"right",name:"靠右"},{value:"rightVertical",name:"垂直靠右"},{value:"rightVerticalCenter",name:"垂直靠右居中"},{value:"buttom",name:"底部"}],C=[{value:"circle",name:"圆形"},{value:"rect",name:"矩形"},{value:"roundRect",name:"圆角矩形"},{value:"triangle",name:"三角形"},{value:"diamond",name:"菱形"},{value:"none",name:"不显示"}],t=A,s=()=>{t("apiSearchClick")},g=()=>{t("sqlChange")},d=()=>{console.log("filterChange"),t("change",1)},u=(m,i)=>{t("change")},p=vue.ref(!1),w=()=>{p.value=!0},h=()=>{u(),p.value=!1},S=m=>{l.currentItem.icon.splice(m,1)},J=m=>new URL(Object.assign({"./icon/1.png":__vite_glob_0_0,"./icon/10.png":__vite_glob_0_1,"./icon/11.png":__vite_glob_0_2,"./icon/12.png":__vite_glob_0_3,"./icon/13.png":__vite_glob_0_4,"./icon/14.png":__vite_glob_0_5,"./icon/15.png":__vite_glob_0_6,"./icon/16.png":__vite_glob_0_7,"./icon/17.png":__vite_glob_0_8,"./icon/18.png":__vite_glob_0_9,"./icon/19.png":__vite_glob_0_10,"./icon/2.png":__vite_glob_0_11,"./icon/20.png":__vite_glob_0_12,"./icon/21.png":__vite_glob_0_13,"./icon/22.png":__vite_glob_0_14,"./icon/23.png":__vite_glob_0_15,"./icon/24.png":__vite_glob_0_16,"./icon/25.png":__vite_glob_0_17,"./icon/26.png":__vite_glob_0_18,"./icon/27.png":__vite_glob_0_19,"./icon/28.png":__vite_glob_0_20,"./icon/29.png":__vite_glob_0_21,"./icon/3.png":__vite_glob_0_22,"./icon/30.png":__vite_glob_0_23,"./icon/31.png":__vite_glob_0_24,"./icon/32.png":__vite_glob_0_25,"./icon/33.png":__vite_glob_0_26,"./icon/34.png":__vite_glob_0_27,"./icon/35.png":__vite_glob_0_28,"./icon/4.png":__vite_glob_0_29,"./icon/5.png":__vite_glob_0_30,"./icon/6.png":__vite_glob_0_31,"./icon/7.png":__vite_glob_0_32,"./icon/8.png":__vite_glob_0_33,"./icon/9.png":__vite_glob_0_34})[`./icon/${m}`],typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:_documentCurrentScript&&_documentCurrentScript.src||new URL("vol-dashboard.umd.cjs",document.baseURI).href).href,b=(m,i)=>{console.log(m),console.log(l.currentItem),l.currentItem[i]=l.currentItem[i]?1:0},K=vue.ref(["#ff4500","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585","rgba(255, 69, 0, 0.68)","rgb(255, 120, 0)","hsv(51, 100, 98)","hsva(120, 40, 94, 0.5)","hsl(181, 100%, 37%)","hsla(209, 100%, 56%, 0.73)","#c7158577"]),y=vue.ref([]),{proxy:x}=vue.getCurrentInstance();return x.http.post("api/Sys_Dictionary/GetVueDictionary",["dbServer"]).then(m=>{y.value=m[0].data}),(m,i)=>{const q=vue.resolveComponent("el-scrollbar"),D=vue.resolveComponent("el-button"),M=vue.resolveComponent("el-dialog"),L=vue.resolveComponent("Setting"),f=vue.resolveComponent("el-icon"),k=vue.resolveComponent("el-input"),c=vue.resolveComponent("el-descriptions-item"),E=vue.resolveComponent("el-descriptions"),I=vue.resolveComponent("el-option"),v=vue.resolveComponent("el-select"),Q=vue.resolveComponent("el-input-number"),F=vue.resolveComponent("el-tab-pane"),N=vue.resolveComponent("Monitor"),Y=vue.resolveComponent("FolderOpened"),R=vue.resolveComponent("el-color-picker"),U=vue.resolveComponent("Plus"),W=vue.resolveComponent("Sort"),G=vue.resolveComponent("el-tabs");return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(M,{modelValue:p.value,"onUpdate:modelValue":i[1]||(i[1]=o=>p.value=o),"close-on-click-modal":!1,"close-on-press-escape":!1,width:900,modal:!0,style:{margin:"auto",top:"50px"}},{header:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(m.$ts("图标")),1)]),footer:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$3,[_hoisted_2$2,e.currentItem.isFont?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$2,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.currentItem.icon,(o,B)=>(vue.openBlock(),vue.createElementBlock("i",{style:{"font-size":"20px",padding:"6px",cursor:"pointer"},class:vue.normalizeClass(o),key:B,onClick:V=>S(B)},null,10,_hoisted_4$2))),128))])):(vue.openBlock(),vue.createElementBlock("div",_hoisted_5$2,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.currentItem.icon,(o,B)=>(vue.openBlock(),vue.createElementBlock("img",{style:{height:"20px","margin-right":"5px",cursor:"pointer"},src:J(o.name||o),key:B,onClick:V=>S(B)},null,8,_hoisted_6$2))),128))])),_hoisted_7$1]),vue.createElementVNode("div",_hoisted_8$1,[vue.createVNode(D,{onClick:i[0]||(i[0]=o=>p.value=!1)},{default:vue.withCtx(()=>[_hoisted_9$1,vue.createTextVNode(vue.toDisplayString(m.$ts("关闭")),1)]),_:1}),vue.createVNode(D,{type:"primary",onClick:h},{default:vue.withCtx(()=>[_hoisted_10$1,vue.createTextVNode(vue.toDisplayString(m.$ts("确定")),1)]),_:1})])]),default:vue.withCtx(()=>[vue.createVNode(q,{"max-height":500},{default:vue.withCtx(()=>[vue.createElementVNode("div",{style:vue.normalizeStyle([{"min-height":"50px"},{padding:"10px"}]),class:"srcoll-content"},[vue.createVNode(VolIcon,{data:e.currentItem.icon,font:!!e.currentItem.isFont},null,8,["data","font"])])]),_:1})]),_:1},8,["modelValue"]),vue.createVNode(G,{modelValue:n.value,"onUpdate:modelValue":i[51]||(i[51]=o=>n.value=o),class:"demo-tabs"},{default:vue.withCtx(()=>[vue.createVNode(F,{name:"基础设置"},{label:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_11$1,[vue.createVNode(f,null,{default:vue.withCtx(()=>[vue.createVNode(L)]),_:1}),_hoisted_12$1])]),default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_13$1,[vue.createVNode(E,{class:"desc-top",column:1,size:"default",border:!0},{default:vue.withCtx(()=>[vue.createVNode(c,{"label-align":"left",span:1,label:"标题"},{default:vue.withCtx(()=>[vue.createVNode(k,{modelValue:e.currentItem.title,"onUpdate:modelValue":i[2]||(i[2]=o=>e.currentItem.title=o),onBlur:u,placeholder:"请输入标题"},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(E,{class:"desc-top",column:1,size:"default",border:!0},{default:vue.withCtx(()=>[vue.createVNode(c,{"label-align":"left",span:1,label:"显示筛选"},{default:vue.withCtx(()=>[vue.createVNode(v,{teleported:!1,modelValue:e.currentItem.showFilter,"onUpdate:modelValue":i[3]||(i[3]=o=>e.currentItem.showFilter=o),onChange:i[4]||(i[4]=o=>{b(o,"isProc")})},{default:vue.withCtx(()=>[vue.createVNode(I,{value:1,label:"是"},{default:vue.withCtx(()=>[vue.createTextVNode("是")]),_:1}),vue.createVNode(I,{value:0,label:"否"},{default:vue.withCtx(()=>[vue.createTextVNode(" 否")]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),e.currentItem.showFilter?(vue.openBlock(),vue.createBlock(E,{key:0,class:"desc-top",column:1,size:"default",border:!0},{default:vue.withCtx(()=>[vue.createVNode(c,{"label-align":"left",span:1,label:"筛选条件"},{default:vue.withCtx(()=>[vue.createVNode(v,{teleported:!1,modelValue:e.currentItem.filterType,"onUpdate:modelValue":i[5]||(i[5]=o=>e.currentItem.filterType=o)},{default:vue.withCtx(()=>[vue.createVNode(I,{value:"纵向显示"},{default:vue.withCtx(()=>[vue.createTextVNode("纵向显示 ")]),_:1}),vue.createVNode(I,{value:"横向显示"},{default:vue.withCtx(()=>[vue.createTextVNode("水平显示 ")]),_:1})]),_:1},8,["modelValue"]),vue.withDirectives(vue.createElementVNode("div",_hoisted_14$1,[_hoisted_15$1,vue.createVNode(v,{teleported:!1,placeholder:"请选择",onChange:d,modelValue:e.currentItem.filterValue,"onUpdate:modelValue":i[6]||(i[6]=o=>e.currentItem.filterValue=o)},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(a),(o,B)=>(vue.openBlock(),vue.createBlock(I,{key:B,label:o,value:o},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])],512),[[vue.vShow,e.currentItem.showFilter]])]),_:1})]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(E,{class:"desc-top",column:1,size:"default",border:!0},{default:vue.withCtx(()=>[vue.createVNode(c,{"label-align":"left",span:1,label:"接口地址"},{default:vue.withCtx(()=>[vue.createVNode(k,{modelValue:e.currentItem.url,"onUpdate:modelValue":i[7]||(i[7]=o=>e.currentItem.url=o),placeholder:"api/xx/xx"},{append:vue.withCtx(()=>[vue.createVNode(D,{icon:"Search",onClick:s})]),_:1},8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(E,{class:"desc-top",column:1,size:"default",border:!0},{default:vue.withCtx(()=>[vue.createVNode(c,{"label-align":"left",span:1,label:"sql"},{default:vue.withCtx(()=>[vue.createVNode(k,{type:"textarea",onBlur:g,style:{"font-size":"12px"},autosize:{minRows:3,maxRows:10},modelValue:e.currentItem.sql,"onUpdate:modelValue":i[8]||(i[8]=o=>e.currentItem.sql=o),placeholder:"日期固定参数名@date12如：select xx from table where 日期字段 BETWEEN @date1 and @date2"},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(E,{class:"desc-top",column:1,size:"default",border:!0},{default:vue.withCtx(()=>[vue.createVNode(c,{"label-align":"left",span:1,label:"存储过程"},{default:vue.withCtx(()=>[vue.createVNode(v,{teleported:!1,modelValue:e.currentItem.isProc,"onUpdate:modelValue":i[9]||(i[9]=o=>e.currentItem.isProc=o)},{default:vue.withCtx(()=>[vue.createVNode(I,{value:1,label:"是"},{default:vue.withCtx(()=>[vue.createTextVNode("是")]),_:1}),vue.createVNode(I,{value:0,label:"否"},{default:vue.withCtx(()=>[vue.createTextVNode("否 ")]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(E,{class:"desc-top",column:1,size:"default",border:!0},{default:vue.withCtx(()=>[vue.createVNode(c,{"label-align":"left",span:1,label:"所在数据库"},{default:vue.withCtx(()=>[vue.createVNode(v,{teleported:!1,placeholder:"请选择",modelValue:e.currentItem.db,"onUpdate:modelValue":i[10]||(i[10]=o=>e.currentItem.db=o)},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(y.value,(o,B)=>(vue.openBlock(),vue.createBlock(I,{key:B,label:o.value,value:o.key},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(E,{class:"desc-top",column:1,size:"default",border:!0},{default:vue.withCtx(()=>[vue.createVNode(c,{"label-align":"left",span:1,label:"数据过滤"},{default:vue.withCtx(()=>[vue.createVNode(k,{type:"textarea",style:{"font-size":"12px"},onBlur:u,autosize:{minRows:4,maxRows:10},modelValue:e.currentItem.filterFunc,"onUpdate:modelValue":i[11]||(i[11]=o=>e.currentItem.filterFunc=o)},null,8,["modelValue"])]),_:1})]),_:1}),e.currentItem.type=="form"||e.currentItem.type=="card"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[vue.createVNode(E,{class:"desc-top",column:1,size:"default",border:!0},{default:vue.withCtx(()=>[vue.createVNode(c,{"label-align":"left",span:1,label:"列字段数量"},{default:vue.withCtx(()=>[vue.createVNode(Q,{style:{width:"100%","font-size":"12px"},min:1,onChange:u,modelValue:e.currentItem.column,"onUpdate:modelValue":i[12]||(i[12]=o=>e.currentItem.column=o)},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(E,{class:"desc-top",column:1,size:"default",border:!0},{default:vue.withCtx(()=>[vue.createVNode(c,{"label-align":"left",span:1,label:"表单参数"},{default:vue.withCtx(()=>[vue.createVNode(k,{type:"textarea",style:{"font-size":"12px"},onBlur:u,autosize:{minRows:4,maxRows:10},modelValue:e.currentItem.formText,"onUpdate:modelValue":i[13]||(i[13]=o=>e.currentItem.formText=o)},null,8,["modelValue"])]),_:1})]),_:1})],64)):vue.createCommentVNode("",!0),vue.createVNode(E,{class:"desc-top",column:1,size:"default",border:!0},{default:vue.withCtx(()=>[vue.createVNode(c,{"label-align":"left",span:1,label:"数据格式"},{default:vue.withCtx(()=>[vue.createVNode(k,{type:"textarea",style:{"font-size":"12px"},onBlur:u,autosize:{minRows:6,maxRows:10},modelValue:e.currentItem.dataText,"onUpdate:modelValue":i[14]||(i[14]=o=>e.currentItem.dataText=o)},null,8,["modelValue"])]),_:1})]),_:1})])]),_:1}),vue.createVNode(F,{name:"属性设置"},{label:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_16$1,[vue.createVNode(f,null,{default:vue.withCtx(()=>[vue.createVNode(N)]),_:1}),_hoisted_17$1])]),default:vue.withCtx(()=>[e.currentItem.icon&&e.currentItem.type=="gridText"||e.currentItem.type=="ranking"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_18$1,[e.currentItem.type=="gridText"?(vue.openBlock(),vue.createBlock(E,{key:0,class:"desc-top",column:1,size:"default",border:!0},{default:vue.withCtx(()=>[vue.createVNode(c,{"label-align":"left",span:1,label:"图片"},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"img-icon",onClick:w,style:{display:"flex"}},[e.currentItem.isFont?(vue.openBlock(),vue.createElementBlock("div",_hoisted_19$1,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.currentItem.icon,(o,B)=>(vue.openBlock(),vue.createElementBlock("i",{style:{"font-size":"18px",padding:"6px"},class:vue.normalizeClass(o),key:B},null,2))),128))])):(vue.openBlock(),vue.createElementBlock("div",_hoisted_20$1,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.currentItem.icon,(o,B)=>(vue.openBlock(),vue.createElementBlock("img",{style:{height:"20px","margin-right":"5px",cursor:"pointer"},src:J(o.name||o),key:B,onClick:i[15]||(i[15]=V=>S(m.index))},null,8,_hoisted_21$1))),128))])),vue.createVNode(f,{size:"20",color:"#928f8f",style:{position:"relative",top:"3px"}},{default:vue.withCtx(()=>[vue.createVNode(Y)]),_:1})])]),_:1})]),_:1})):vue.createCommentVNode("",!0)])):vue.createCommentVNode("",!0),e.currentItem.type=="gridText"?(vue.openBlock(),vue.createBlock(E,{key:1,class:"desc-top",column:1,size:"default",border:!0},{default:vue.withCtx(()=>[vue.createVNode(c,{"label-align":"left",span:1,label:"背景颜色"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_22$1,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.currentItem.bgColor,(o,B)=>(vue.openBlock(),vue.createElementBlock("div",{class:"color-item",key:B},[vue.createVNode(R,{teleported:!1,"show-alpha":"",predefine:K.value,modelValue:e.currentItem.bgColor[B],"onUpdate:modelValue":V=>e.currentItem.bgColor[B]=V},null,8,["predefine","modelValue","onUpdate:modelValue"]),vue.createElementVNode("span",{class:"color-item-del el-icon-delete",onClick:V=>e.currentItem.bgColor.splice(B,1)},null,8,_hoisted_23$1)]))),128)),vue.createVNode(f,{onClick:i[16]||(i[16]=o=>e.currentItem.bgColor.push("")),size:"20",color:"#928f8f",style:{position:"relative",top:"3px"}},{default:vue.withCtx(()=>[vue.createVNode(U)]),_:1})])]),_:1})]),_:1})):vue.createCommentVNode("",!0),e.currentItem.type!="pie"?(vue.openBlock(),vue.createBlock(E,{key:2,class:"desc-top",column:1,size:"default",border:!0},{default:vue.withCtx(()=>[vue.createVNode(c,{"label-align":"left",span:1,label:e.currentItem.type=="ranking"?"进度条背景":"标题颜色"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_24,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.currentItem.titleColor,(o,B)=>(vue.openBlock(),vue.createElementBlock("div",{class:"color-item",key:B},[vue.createVNode(R,{"show-alpha":"",predefine:K.value,modelValue:e.currentItem.titleColor[B],"onUpdate:modelValue":V=>e.currentItem.titleColor[B]=V},null,8,["predefine","modelValue","onUpdate:modelValue"]),vue.createElementVNode("span",{class:"color-item-del el-icon-delete",onClick:V=>e.currentItem.titleColor.splice(B,1)},null,8,_hoisted_25)]))),128)),vue.createVNode(f,{onClick:i[17]||(i[17]=o=>e.currentItem.titleColor.push("")),size:"20",color:"#928f8f",style:{position:"relative",top:"3px"}},{default:vue.withCtx(()=>[vue.createVNode(U)]),_:1})])]),_:1},8,["label"])]),_:1})):vue.createCommentVNode("",!0),e.currentItem.type=="gridText"?(vue.openBlock(),vue.createBlock(E,{key:3,class:"desc-top",column:1,size:"default",border:!0},{default:vue.withCtx(()=>[vue.createVNode(c,{"label-align":"left",span:1,label:"数字颜色"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_26,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.currentItem.fontColor,(o,B)=>(vue.openBlock(),vue.createElementBlock("div",{class:"color-item",key:B},[vue.createVNode(R,{"show-alpha":"",predefine:K.value,modelValue:e.currentItem.fontColor[B],"onUpdate:modelValue":V=>e.currentItem.fontColor[B]=V},null,8,["predefine","modelValue","onUpdate:modelValue"]),vue.createElementVNode("span",{class:"color-item-del el-icon-delete",onClick:V=>e.currentItem.fontColor.splice(B,1)},null,8,_hoisted_27)]))),128)),vue.createVNode(f,{onClick:i[18]||(i[18]=o=>e.currentItem.fontColor.push("")),size:"20",color:"#928f8f",style:{position:"relative",top:"3px"}},{default:vue.withCtx(()=>[vue.createVNode(U)]),_:1})])]),_:1})]),_:1})):vue.createCommentVNode("",!0),e.currentItem.type=="gridText"?(vue.openBlock(),vue.createBlock(E,{key:4,class:"desc-top",column:1,size:"default",border:!0},{default:vue.withCtx(()=>[vue.createVNode(c,{"label-align":"left",span:1,label:"显示数字"},{default:vue.withCtx(()=>[vue.createVNode(v,{teleported:!1,modelValue:e.currentItem.showNumber,"onUpdate:modelValue":i[19]||(i[19]=o=>e.currentItem.showNumber=o),onChange:u},{default:vue.withCtx(()=>[vue.createVNode(I,{value:1,label:"是"},{default:vue.withCtx(()=>[vue.createTextVNode("是")]),_:1}),vue.createVNode(I,{value:0,label:"否"},{default:vue.withCtx(()=>[vue.createTextVNode("否 ")]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1})):vue.createCommentVNode("",!0),e.currentItem.type=="ranking"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_28,[vue.createVNode(E,{class:"desc-top",column:1,size:"default",border:!0},{default:vue.withCtx(()=>[vue.createVNode(c,{"label-align":"left",span:1,label:"进度条宽度"},{default:vue.withCtx(()=>[vue.createVNode(Q,{min:0,style:{width:"100%"},modelValue:e.currentItem.strokeWidth,"onUpdate:modelValue":i[20]||(i[20]=o=>e.currentItem.strokeWidth=o),onChange:u},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(E,{class:"desc-top",column:1,size:"default",border:!0},{default:vue.withCtx(()=>[vue.createVNode(c,{"label-align":"left",span:1,label:"数字单位后缀"},{default:vue.withCtx(()=>[vue.createVNode(k,{style:{width:"100%"},modelValue:e.currentItem.unit,"onUpdate:modelValue":i[21]||(i[21]=o=>e.currentItem.unit=o),onBlur:u},null,8,["modelValue"])]),_:1})]),_:1})])):vue.createCommentVNode("",!0),e.currentItem.typ=="gridText"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_29,[vue.createVNode(E,{class:"desc-top",column:1,size:"default",border:!0},{default:vue.withCtx(()=>[vue.createVNode(c,{"label-align":"left",span:1,label:"图片大小"},{default:vue.withCtx(()=>[vue.createVNode(Q,{min:0,style:{width:"100%"},modelValue:e.currentItem.imgSize,"onUpdate:modelValue":i[22]||(i[22]=o=>e.currentItem.imgSize=o),onChange:u},null,8,["modelValue"])]),_:1})]),_:1})])):vue.createCommentVNode("",!0),vue.withDirectives(vue.createElementVNode("div",_hoisted_30,[vue.createVNode(E,{class:"desc-top",column:1,size:"default",border:!0},{default:vue.withCtx(()=>[vue.createVNode(c,{"label-align":"left",span:1,label:"图间距(左)"},{default:vue.withCtx(()=>[vue.createVNode(Q,{min:0,onChange:u,style:{width:"100%"},modelValue:e.currentItem.grid.left,"onUpdate:modelValue":i[23]||(i[23]=o=>e.currentItem.grid.left=o),placeholder:"图间距(左)",step:5},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(E,{class:"desc-top",column:1,size:"default",border:!0},{default:vue.withCtx(()=>[vue.createVNode(c,{"label-align":"left",span:1,label:"图间距(上)"},{default:vue.withCtx(()=>[vue.createVNode(Q,{min:0,onChange:u,style:{width:"100%"},modelValue:e.currentItem.grid.top,"onUpdate:modelValue":i[24]||(i[24]=o=>e.currentItem.grid.top=o),placeholder:"图间距(上)",step:5},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(E,{class:"desc-top",column:1,size:"default",border:!0},{default:vue.withCtx(()=>[vue.createVNode(c,{"label-align":"left",span:1,label:"图间距(右)"},{default:vue.withCtx(()=>[vue.createVNode(Q,{min:0,onChange:u,style:{width:"100%"},modelValue:e.currentItem.grid.right,"onUpdate:modelValue":i[25]||(i[25]=o=>e.currentItem.grid.right=o),placeholder:"图间距(右)",step:5},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(E,{class:"desc-top",column:1,size:"default",border:!0},{default:vue.withCtx(()=>[vue.createVNode(c,{"label-align":"left",span:1,label:"图间距(下)"},{default:vue.withCtx(()=>[vue.createVNode(Q,{min:0,onChange:u,style:{width:"100%"},modelValue:e.currentItem.grid.bottom,"onUpdate:modelValue":i[26]||(i[26]=o=>e.currentItem.grid.bottom=o),placeholder:"图间距(下)",step:5},null,8,["modelValue"])]),_:1})]),_:1})],512),[[vue.vShow,e.currentItem.type=="bar"||e.currentItem.type=="line"]]),vue.withDirectives(vue.createElementVNode("div",_hoisted_31,[vue.createVNode(E,{class:"desc-top",column:1,size:"default",border:!0},{default:vue.withCtx(()=>[vue.createVNode(c,{"label-align":"left",span:1,label:"图间距左右"},{default:vue.withCtx(()=>[vue.createVNode(Q,{min:0,onChange:u,style:{width:"100%"},modelValue:e.currentItem.left,"onUpdate:modelValue":i[27]||(i[27]=o=>e.currentItem.left=o),placeholder:"图间距左右",step:1},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(E,{class:"desc-top",column:1,size:"default",border:!0},{default:vue.withCtx(()=>[vue.createVNode(c,{"label-align":"left",span:1,label:"图间距上下"},{default:vue.withCtx(()=>[vue.createVNode(Q,{min:0,onChange:u,style:{width:"100%"},modelValue:e.currentItem.top,"onUpdate:modelValue":i[28]||(i[28]=o=>e.currentItem.top=o),placeholder:"图间距上下",step:2},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(E,{class:"desc-top",column:1,size:"default",border:!0},{default:vue.withCtx(()=>[vue.createVNode(c,{"label-align":"left",span:2,label:"饼图大小内"},{default:vue.withCtx(()=>[vue.createVNode(Q,{min:0,onChange:u,style:{width:"100%"},modelValue:e.currentItem.size1,"onUpdate:modelValue":i[29]||(i[29]=o=>e.currentItem.size1=o),placeholder:"饼图大小内",step:5},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(E,{class:"desc-top",column:1,size:"default",border:!0},{default:vue.withCtx(()=>[vue.createVNode(c,{"label-align":"left",span:1,label:"饼图大小外"},{default:vue.withCtx(()=>[vue.createVNode(Q,{min:0,onChange:u,style:{width:"100%"},modelValue:e.currentItem.size2,"onUpdate:modelValue":i[30]||(i[30]=o=>e.currentItem.size2=o),placeholder:"饼图大小外",step:5},null,8,["modelValue"])]),_:1})]),_:1})],512),[[vue.vShow,e.currentItem.type=="pie"]]),vue.withDirectives(vue.createElementVNode("div",_hoisted_32,[vue.withDirectives(vue.createVNode(E,{class:"desc-top",column:1,size:"default",border:!0},{default:vue.withCtx(()=>[vue.createVNode(c,{"label-align":"left",span:1,label:"图例位置"},{default:vue.withCtx(()=>[vue.createVNode(v,{teleported:!1,onChange:u,placeholder:"请选择",modelValue:e.currentItem.legend,"onUpdate:modelValue":i[31]||(i[31]=o=>e.currentItem.legend=o)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(r,(o,B)=>vue.createVNode(I,{key:B,value:o.value,label:o.name},null,8,["value","label"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1},512),[[vue.vShow,e.currentItem.type=="bar"||e.currentItem.type=="line"||e.currentItem.type=="pie"]]),vue.createVNode(E,{class:"desc-top",column:1,size:"default",border:!0},{default:vue.withCtx(()=>[vue.createVNode(c,{"label-align":"left",span:1,label:"图例形状"},{default:vue.withCtx(()=>[vue.createVNode(v,{teleported:!1,onChange:u,placeholder:"请选择",modelValue:e.currentItem.legendShape,"onUpdate:modelValue":i[32]||(i[32]=o=>e.currentItem.legendShape=o)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(C,(o,B)=>vue.createVNode(I,{key:B,value:o.value,label:o.name},null,8,["value","label"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(E,{class:"desc-top",column:1,size:"default",border:!0},{default:vue.withCtx(()=>[vue.createVNode(c,{"label-align":"left",span:1,label:"图例大小"},{default:vue.withCtx(()=>[vue.createVNode(Q,{min:0,onChange:u,style:{width:"100%"},modelValue:e.currentItem.legendSize,"onUpdate:modelValue":i[33]||(i[33]=o=>e.currentItem.legendSize=o),placeholder:"图例大小"},null,8,["modelValue"])]),_:1})]),_:1}),vue.withDirectives(vue.createElementVNode("div",_hoisted_33,[vue.createVNode(E,{class:"desc-top",column:1,size:"default",border:!0},{default:vue.withCtx(()=>[vue.createVNode(c,{"label-align":"left",span:1,label:"图例数量"},{default:vue.withCtx(()=>[vue.createVNode(v,{placeholder:"请选择",teleported:!1,modelValue:e.currentItem.showLegendValue,"onUpdate:modelValue":i[34]||(i[34]=o=>e.currentItem.showLegendValue=o),onChange:u},{default:vue.withCtx(()=>[vue.createVNode(I,{value:0,label:"否"}),vue.createVNode(I,{value:1,label:"是"})]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(c,{"label-align":"left",span:1,label:"图例单位"},{default:vue.withCtx(()=>[vue.createVNode(k,{modelValue:e.currentItem.showLegendUnit,"onUpdate:modelValue":i[35]||(i[35]=o=>e.currentItem.showLegendUnit=o),onBlur:u,placeholder:"请输入图例单位"},null,8,["modelValue"])]),_:1}),vue.createVNode(c,{"label-align":"left",span:1,label:"图例百分比"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_34,[vue.createVNode(v,{placeholder:"请选择",teleported:!1,modelValue:e.currentItem.showLegendRate,"onUpdate:modelValue":i[36]||(i[36]=o=>e.currentItem.showLegendRate=o),onChange:u},{default:vue.withCtx(()=>[vue.createVNode(I,{value:0,label:"否"}),vue.createVNode(I,{value:1,label:"是"})]),_:1},8,["modelValue"]),_hoisted_35,vue.createVNode(k,{modelValue:e.currentItem.numLen,"onUpdate:modelValue":i[37]||(i[37]=o=>e.currentItem.numLen=o),placeholder:"小数位数"},null,8,["modelValue"])])]),_:1}),vue.createVNode(c,{"label-align":"left",span:1,label:"显示汇总"},{default:vue.withCtx(()=>[vue.createVNode(v,{placeholder:"请选择",teleported:!1,modelValue:e.currentItem.showTotal,"onUpdate:modelValue":i[38]||(i[38]=o=>e.currentItem.showTotal=o),onChange:u},{default:vue.withCtx(()=>[vue.createVNode(I,{value:0,label:"隐藏"},{default:vue.withCtx(()=>[vue.createTextVNode("隐藏")]),_:1}),vue.createVNode(I,{value:1,label:"显示"})]),_:1},8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(E,{class:"desc-top",column:1,size:"default",border:!0},{default:vue.withCtx(()=>[vue.createVNode(c,{"label-align":"left",span:1,label:"汇总标题"},{default:vue.withCtx(()=>[vue.createVNode(k,{modelValue:e.currentItem.subTitle,"onUpdate:modelValue":i[39]||(i[39]=o=>e.currentItem.subTitle=o),onBlur:u,placeholder:"请输入标题"},null,8,["modelValue"])]),_:1}),vue.createVNode(c,{"label-align":"left",span:1,label:"汇总字体"},{default:vue.withCtx(()=>[vue.createVNode(Q,{min:0,onChange:u,style:{width:"100%"},modelValue:e.currentItem.totalSize,"onUpdate:modelValue":i[40]||(i[40]=o=>e.currentItem.totalSize=o),placeholder:"汇总字体大小"},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(E,{class:"desc-top",column:1,size:"default",border:!0},{default:vue.withCtx(()=>[vue.createVNode(c,{"label-align":"left",span:1,label:"标题字体"},{default:vue.withCtx(()=>[vue.createVNode(Q,{min:0,onChange:u,style:{width:"100%"},modelValue:e.currentItem.subTitleSize,"onUpdate:modelValue":i[41]||(i[41]=o=>e.currentItem.subTitleSize=o),placeholder:"标题字体大小"},null,8,["modelValue"])]),_:1})]),_:1})],512),[[vue.vShow,e.currentItem.type=="pie"]]),vue.createVNode(E,{class:"desc-top",column:1,size:"default",border:!0},{default:vue.withCtx(()=>[vue.createVNode(c,{"label-align":"left",span:1,label:"显示文本"},{default:vue.withCtx(()=>[vue.createVNode(v,{teleported:!1,modelValue:e.currentItem.showLabel,"onUpdate:modelValue":i[42]||(i[42]=o=>e.currentItem.showLabel=o),onChange:u},{default:vue.withCtx(()=>[vue.createVNode(I,{value:0,label:"隐藏"},{default:vue.withCtx(()=>[vue.createTextVNode("隐藏")]),_:1}),vue.createVNode(I,{value:1,label:"显示"})]),_:1},8,["modelValue"])]),_:1})]),_:1}),vue.withDirectives(vue.createElementVNode("div",null,[vue.createVNode(E,{class:"desc-top",column:1,size:"default",border:!0},{default:vue.withCtx(()=>[vue.createVNode(c,{"label-align":"left",span:1,label:"柱状图圆角"},{default:vue.withCtx(()=>[vue.createVNode(Q,{min:0,onChange:u,style:{width:"100%"},modelValue:e.currentItem.radius,"onUpdate:modelValue":i[43]||(i[43]=o=>e.currentItem.radius=o),step:2,placeholder:"圆角"},null,8,["modelValue"])]),_:1})]),_:1}),e.currentItem.type=="bar"?(vue.openBlock(),vue.createBlock(E,{key:0,class:"desc-top",column:1,size:"default",border:!0},{default:vue.withCtx(()=>[vue.createVNode(c,{"label-align":"left",span:1,label:"柱状图最大宽度"},{default:vue.withCtx(()=>[vue.createVNode(Q,{min:0,onChange:u,style:{width:"100%"},modelValue:e.currentItem.barMaxWidth,"onUpdate:modelValue":i[44]||(i[44]=o=>e.currentItem.barMaxWidth=o),step:2,placeholder:"宽度"},null,8,["modelValue"])]),_:1})]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(E,{class:"desc-top",column:1,size:"default",border:!0},{default:vue.withCtx(()=>[vue.createVNode(c,{"label-align":"left",span:1,label:"X轴网格"},{default:vue.withCtx(()=>[vue.createVNode(v,{teleported:!1,modelValue:e.currentItem.xLine,"onUpdate:modelValue":i[45]||(i[45]=o=>e.currentItem.xLine=o),onChange:u},{default:vue.withCtx(()=>[vue.createVNode(I,{value:0,label:"隐藏"},{default:vue.withCtx(()=>[vue.createTextVNode("隐藏")]),_:1}),vue.createVNode(I,{value:1,label:"显示"})]),_:1},8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(E,{class:"desc-top",column:1,size:"default",border:!0},{default:vue.withCtx(()=>[vue.createVNode(c,{"label-align":"left",span:1,label:"Y轴网格"},{default:vue.withCtx(()=>[vue.createVNode(v,{teleported:!1,modelValue:e.currentItem.yLine,"onUpdate:modelValue":i[46]||(i[46]=o=>e.currentItem.yLine=o),onChange:u},{default:vue.withCtx(()=>[vue.createVNode(I,{value:0,label:"隐藏"},{default:vue.withCtx(()=>[vue.createTextVNode("隐藏")]),_:1}),vue.createVNode(I,{value:1,label:"显示"})]),_:1},8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(E,{class:"desc-top",column:1,size:"default",border:!0},{default:vue.withCtx(()=>[vue.createVNode(c,{"label-align":"left",span:1,label:"堆叠显示"},{default:vue.withCtx(()=>[vue.createVNode(v,{teleported:!1,modelValue:e.currentItem.stack,"onUpdate:modelValue":i[47]||(i[47]=o=>e.currentItem.stack=o),onChange:u},{default:vue.withCtx(()=>[vue.createVNode(I,{value:1,label:"是"},{default:vue.withCtx(()=>[vue.createTextVNode("是")]),_:1}),vue.createVNode(I,{value:0,label:"否"},{default:vue.withCtx(()=>[vue.createTextVNode("否 ")]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(E,{class:"desc-top",column:1,size:"default",border:!0},{default:vue.withCtx(()=>[vue.createVNode(c,{"label-align":"left",span:1,label:"图纵向显示"},{default:vue.withCtx(()=>[vue.createVNode(v,{teleported:!1,modelValue:e.currentItem.showXData,"onUpdate:modelValue":i[48]||(i[48]=o=>e.currentItem.showXData=o),onChange:u},{default:vue.withCtx(()=>[vue.createVNode(I,{value:1,label:"是"},{default:vue.withCtx(()=>[vue.createTextVNode("是")]),_:1}),vue.createVNode(I,{value:0,label:"否"},{default:vue.withCtx(()=>[vue.createTextVNode("否 ")]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1})],512),[[vue.vShow,e.currentItem.type=="bar"||e.currentItem.type=="line"]])],512),[[vue.vShow,["bar","line","gauge","pie"].indexOf(e.currentItem.type)!=-1]])]),_:1}),vue.createVNode(F,{name:"事件处理"},{label:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_36,[vue.createVNode(f,null,{default:vue.withCtx(()=>[vue.createVNode(f,null,{default:vue.withCtx(()=>[vue.createVNode(W)]),_:1})]),_:1}),_hoisted_37])]),default:vue.withCtx(()=>[vue.createVNode(E,{class:"desc-top",column:1,size:"default",border:!0},{default:vue.withCtx(()=>[vue.createVNode(c,{"label-align":"left",span:1,label:"跳转地址"},{default:vue.withCtx(()=>[vue.createVNode(k,{placeholder:"页面路由地址,如：/xx?id=123",modelValue:e.currentItem.openUrl,"onUpdate:modelValue":i[49]||(i[49]=o=>e.currentItem.openUrl=o)},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(E,{class:"desc-top",column:1,size:"default",border:!0},{default:vue.withCtx(()=>[vue.createVNode(c,{"label-align":"left",span:1,label:"点击事件"},{default:vue.withCtx(()=>[vue.createVNode(k,{type:"textarea",style:{"font-size":"12px"},autosize:{minRows:10,maxRows:15},modelValue:e.currentItem.eventClick,"onUpdate:modelValue":i[50]||(i[50]=o=>e.currentItem.eventClick=o),placeholder:"funtion(data){ }"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])],64)}}},VolDataParams=_export_sfc(_sfc_main$3,[["__scopeId","data-v-3c8c49e5"]]),_hoisted_1$2=["onClick"],_sfc_main$2={__name:"VolDataFilter",props:{modelValue:{type:String,default:"全部"},filterType:{type:String,default:"纵向显示"}},emits:["filter-change","update:modelValue","update","modelValue"],setup(e,{emit:A}){const l=e;vue.ref(),vue.getCurrentInstance();const n=vue.ref("");n.value=l.value||"全部",n.value=l.modelValue||"全部";const a=A,r=t=>{n.value=t,a("update:modelValue",t),a("filter-change",t)},C=t=>{r(t)};return vue.watch(()=>l.modelValue,(t,s)=>{n.value=t}),(t,s)=>{const g=vue.resolveComponent("arrow-down"),d=vue.resolveComponent("el-icon"),u=vue.resolveComponent("el-button"),p=vue.resolveComponent("el-dropdown-item"),w=vue.resolveComponent("el-dropdown-menu"),h=vue.resolveComponent("el-dropdown");return e.filterType=="纵向显示"?(vue.openBlock(),vue.createBlock(h,{key:0},{dropdown:vue.withCtx(()=>[vue.createVNode(w,null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(filter),(S,J)=>(vue.openBlock(),vue.createBlock(p,{style:{padding:"0","line-height":"0"},key:J},{default:vue.withCtx(()=>[vue.createElementVNode("div",{style:{padding:"10px","line-height":"10px"},onClick:b=>r(S)},vue.toDisplayString(S),9,_hoisted_1$2)]),_:2},1024))),128))]),_:1})]),default:vue.withCtx(()=>[vue.createVNode(u,{link:"",icon:"Calendar",class:"el-dropdown-link"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(n.value),1),vue.createVNode(d,{class:"el-icon--right"},{default:vue.withCtx(()=>[vue.createVNode(g)]),_:1})]),_:1})]),_:1})):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"btn-group",onChange:r},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(filter),(S,J)=>(vue.openBlock(),vue.createBlock(u,{onClick:b=>C(S),plain:S!=n.value,size:"small",type:S===n.value?"primary":"",key:J},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(S),1)]),_:2},1032,["onClick","plain","type"]))),128))],32))}}},VolDataFilter=_export_sfc(_sfc_main$2,[["__scopeId","data-v-b9feb598"]]),_hoisted_1$1={class:"vol-data-table"},_hoisted_2$1={class:"vol-da-table"},_hoisted_3$1=["onClick"],_hoisted_4$1={key:0},_hoisted_5$1={key:1},_hoisted_6$1={style:{width:"40px","min-width":"40px"}},_sfc_main$1={__name:"VolDataNotice",props:{index:{type:Boolean,default:!0},title:{type:String,default:""},data:{type:Array,default:()=>[]}},emits:["componentItemClick"],setup(e,{emit:A}){vue.getCurrentInstance();const l=e,n=vue.computed(()=>l.data.length?Object.keys(l.data[0]).filter(C=>C!="id"):[]),a=A,r=C=>{a("componentItemClick",C,l.data)};return(C,t)=>{const s=vue.resolveComponent("ArrowRight"),g=vue.resolveComponent("el-icon"),d=vue.resolveComponent("el-scrollbar");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1,[vue.createVNode(VolTitle,{icon:"el-icon-menu",title:C.$ts(e.title)},null,8,["title"]),vue.createVNode(d,{style:{flex:"1",height:"0",padding:"0 10px 10px 10px"}},{default:vue.withCtx(()=>[vue.createElementVNode("table",_hoisted_2$1,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.data,(u,p)=>(vue.openBlock(),vue.createElementBlock("tr",{onClick:vue.withModifiers(w=>r(u),["stop"]),key:p},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(n.value,(w,h)=>(vue.openBlock(),vue.createElementBlock("td",{key:h},[h===0?(vue.openBlock(),vue.createElementBlock("span",_hoisted_4$1," 【"+vue.toDisplayString(u[w])+"】 ",1)):(vue.openBlock(),vue.createElementBlock("span",_hoisted_5$1,vue.toDisplayString(u[w]),1))]))),128)),vue.createElementVNode("td",_hoisted_6$1,[vue.createVNode(g,null,{default:vue.withCtx(()=>[vue.createVNode(s)]),_:1})])],8,_hoisted_3$1))),128))])]),_:1})])}}},VolDataNotice=_export_sfc(_sfc_main$1,[["__scopeId","data-v-15b40fbf"]]),_withScopeId=e=>(vue.pushScopeId("data-v-76ccde06"),e=e(),vue.popScopeId(),e),_hoisted_1={class:"grid-box"},_hoisted_2={key:0,class:"grid-layout-component grid-layout-item"},_hoisted_3={class:"header-txt"},_hoisted_4={class:"grid-layout-content grid-layout-item"},_hoisted_5={key:0,class:"header-txt header-content"},_hoisted_6={class:"btns"},_hoisted_7=["onClick"],_hoisted_8=_withScopeId(()=>vue.createElementVNode("i",{class:"el-icon-delete"},null,-1)),_hoisted_9=[_hoisted_8],_hoisted_10=["onClick"],_hoisted_11=_withScopeId(()=>vue.createElementVNode("i",{class:"el-icon-receiving"},null,-1)),_hoisted_12={class:"txt"},_hoisted_13=["onClick"],_hoisted_14={class:"vol-grid-item-title"},_hoisted_15={class:"vol-grid-item-value"},_hoisted_16={class:"vol-grid-item-unit"},_hoisted_17=["id"],_hoisted_18={class:"vol-grid-item-bottom"},_hoisted_19=["onClick"],_hoisted_20={class:"title"},_hoisted_21=["id"],_hoisted_22={key:1,class:"icon-toggle"},_hoisted_23={class:"grid-form-content"},__default__={name:"VolDashboard"},_sfc_main=Object.assign(__default__,{props:{id:{type:String,default:"b421aebf-be78-48d2-803e-a573f40ffa06"},readonly:{type:Boolean,default:!1},saveBefore:{type:Function,default:e=>e}},emits:["preview"],setup(__props,{emit:__emit}){const props=__props,{proxy}=vue.getCurrentInstance(),colWidth=vue.ref(100),defaulCurrentItem=()=>({x:0,y:0,w:5,h:5,title:"",data:null,dataText:"",showFilter:0,filterValue:"近1月",filterType:"纵向显示",sql:"",isProc:0,db:"",url:"",filterFunc:`function(options){
       //可以输出看
       //console.log(options);
       return options;
}`,imgSize:45,grid:{left:40,bottom:20,top:40,right:10},showNumber:1,legend:"center",legendSize:12,legendShape:"circle",radius:6,color:[],xLine:0,yLine:0,showLabel:0,stack:0,showXData:1,openUrl:"",eventClick:`function(item,data,options,proxy){
       //可以输出看
       //console.log(item);
       //如前端开发文档上打开新窗口：
       //proxy.$tabs
       return item;
}`,imgSize:40,isFont:!1,bgColor:[],titleColor:[],fontColor:[],strokeWidth:6,unit:"",size1:60,size2:80,options:{},form:[],formText:"",icon:[],i:new Date().valueOf()+"",isLoad:!0}),currentItem=vue.ref();currentItem.value=defaulCurrentItem();const layout=vue.ref([]),resizedEvent=e=>{if(document.createEvent){let A=new Event("resize");window.dispatchEvent(A)}else document.createEventObject&&window.fireEvent("onresize")},dtNow="2024-01-01",setItemRef=(e,A)=>{if(e){const l=layout.value.find(n=>n.i==A.i);l.ref=e,setTimeout(()=>{initCharts(l)},props.readonly?80:500)}},end=e=>{let A=defaulCurrentItem();if(e.type=="pie"&&(A.legend="rightVerticalCenter"),A.title=e.title,A.w=e.w||A.w,A.h=e.h||A.h,A.icon=(e.icon||[]).map(l=>l),Object.assign(A,e),["table","form","card"].includes(e.type)?e.type=="form"||e.type=="card"?(A.form=e.form(e.type=="card"),A.data=e.data(e.type=="card")):A.data=e.data():(["step","gridText"].includes(e.type)||e.data&&typeof e.data=="function")&&(A.data=e.data()),layout.value.length){let l=layout.value.reduce((a,r)=>Math.max(a,r.x),layout.value[0].x),n=layout.value.reduce((a,r)=>Math.max(a,r.y),layout.value[0].y);A.x=l+1,A.y=n+1}e=Object.assign({},e,A),layout.value.push(e),currentItem.value=e,e.data&&(typeof e.data=="array"||typeof e.data=="object")&&(currentItem.value.dataText=JSON.stringify(e.data)),e.form&&(currentItem.value.formText=JSON.stringify(e.form))},currentId=vue.ref(null),initCharts=(e,A)=>{if(!isChart(e)){let r=filterData(e,e.data);r&&(e.data=r);return}if(!e.ref){console.log("no ref");return}if((!e.data||!e.data.length)&&e.type!="gauge"&&e.type!="gridLine"&&e.type!="gridBar"&&(e.data=[]),!A&&e.$chart){e.resize=!0,setTimeout(()=>{e.$chart.resize(),e.resize=!1},100);return}let l=echarts__namespace.init(e.ref),n;e.type=="pie"?n=pie.init(e,e.data):e.type=="gauge"?n=gauge.init(e,e.data):e.type=="gridLine"||e.type=="gridBar"?(n=options.gridLine(),e.data&&(n.series[0].data=e.data.data||[]),e.type=="gridBar"&&(n.series[0].type="bar")):["line","bar"].includes(e.type)&&(n=BarLineChartOptionn.init(e,e.data),n.series.forEach(r=>{r.type=e.type}));let a=filterData(e,n);a&&(n=a),l.setOption(n,!!A),e.$chart=l},filterData=(lyData,ops)=>{if(lyData.type=="pie"){let e=ops.series[0].data.reduce((A,l)=>A+l.value,0)||1;(lyData.showLegendValue*1==1||lyData.showLegendRate*1==1)&&(ops.legend.formatter=function(A){let l=ops.series[0].data.find(a=>a.name==A).value;for(var n=0;n<ops.series[0].data.length;n++){let a="";return lyData.showLegendRate*1==1&&(a=(l/e*100).toFixed(lyData.numLen||2).replace(".00",""),a="    "+a+"%"),A+" "+l+" "+(lyData.showLegendUnit||"")+a}}),lyData.showTotal*1==1?(lyData.chartTitle=lyData.title,ops.title={show:!0,text:lyData.subTitle,subtext:e,x:lyData.left*1-1+"%",y:lyData.top*1-10+"%"||"40%",textStyle:{color:"#778CA2",fontSize:lyData.subTitleSize||18,fontWeight:"400"},subtextStyle:{color:"rgba(0,0,0,0.85)",fontSize:lyData.totalSize||25,fontWeight:"700"},textAlign:"center"}):lyData.chartTitle=""}if(lyData.filterFunc)try{const funcTxt=lyData.filterFunc.trim();if(!funcTxt)return;const func=eval(`(${funcTxt})`);return func(ops)}catch(e){console.log(e.message),console.log(lyData.filterFunc),elementPlus.ElMessage({message:"数据过滤方法不正确",type:"error",plain:!0})}},showAttr=vue.ref(!0),itemClick=(e,A)=>{props.readonly||(e.showFilter=e.showFilter?1:0,currentItem.value=e)},componentItemClick=(item,data,options)=>{if(!options.eventClick||!props.readonly){options.eventClick&&elementPlus.ElMessage({message:"预览或发布菜单后查看事件点击效果",type:"error",plain:!0});return}try{const funcTxt=options.eventClick.trim();if(!funcTxt)return;funcTxt.indexOf("");const func=eval(`(${funcTxt})`);return func(item,data,options,proxy)}catch(e){console.log(e.message),console.log(options.filterFunc),elementPlus.ElMessage({message:"事件方法不正确",type:"error",plain:!0})}},delItem=e=>{proxy.$confirm("确认要删除组件吗?","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",center:!0}).then(()=>{let A=layout.value.findIndex(l=>l.i==e.i);A!=-1&&(layout.value.splice(A,1),e.value={i:0}),currentItem.value=defaulCurrentItem()})},filterChange=e=>{currentItem.value=e,paramsChange(1)},isChart=e=>(e=e||{},["bar","line","pie","gauge","gridBar","gridLine"].includes(e.type||currentItem.value.type)),paramsChange=e=>{try{if(console.log("paramsChange"),e===1){if(currentItem.value.url){loadItemData(currentItem.value,layout.value);return}if(currentItem.value.sql){let A="api/Sys_Dashboard/getItemData?id="+(props.id||layout.value.dashboardId)+"&itemId="+(currentItem.value.i+"")+"&date1=null&date2=null&filterType="+currentItem.value.filterValue;getApiUrlItemData(props.id||layout.value.dashboardId,currentItem.value,A)}return}if(currentItem.value.dataText&&!currentItem.value.url&&!currentItem.value.sql)try{currentItem.value.dataText&&currentItem.value.dataText!="[]"&&(currentItem.value.data=JSON.parse(currentItem.value.dataText||"[]"))}catch{console.log("数据格式不正确:"+currentItem.value.dataText)}if(isChart()){initCharts(currentItem.value,!0);return}currentItem.value.formText&&(currentItem.value.form=JSON.parse(currentItem.value.formText)),currentItem.value.data=filterData(currentItem.value,currentItem.value.data)}catch(A){console.error(A.message),elementPlus.ElMessage({message:"参数格式不正确",type:"error",plain:!0})}},setItemResultValue=(e,A)=>{(!A||!Array.isArray(A)||!A.length)&&(A&&e.valueType=="json"?A=[A]:A=[]),e.valueType=="array"?Array.isArray(A)?e.data=A:e.data=[A]:Array.isArray(A)?e.data=A[0]:e.data=A},getApiUrlItemData=(e,A,l,n)=>{proxy.http.post(l,{},!1).then(a=>{setItemResultValue(A,a),A.isLoad=!0,initCharts(A||currentItem.value,!0),n&&elementPlus.ElMessage({message:"查询成功",type:"success",plain:!0})})},sqlChange=()=>{if(!currentItem.value.sql)return;currentItem.value.sql.trim();let e="api/Sys_Dashboard/execSql",A={id:props.id,sql:currentItem.value.sql,db:currentItem.value.db,isProc:currentItem.value.isProc,date1:null,date2:null,filterType:currentItem.value.filterValue};proxy.http.post(e,A,!0).then(l=>{setItemResultValue(currentItem.value,l),initCharts(currentItem.value,!0),elementPlus.ElMessage({message:"查询成功",type:"success",plain:!0})})},apiSearchClick=()=>{loadItemData(currentItem.value,layout,!0)},loadItemData=(e,A,l)=>{if(!e.type&&A.value&&(e.type=A.value.type),!e.url)return;let n=e.url+(e.url.indexOf("?")!=-1?"&":"?")+"id="+props.id+"&itemId="+(e.i+"")+"&date1=null&date2=null&filterType="+e.filterValue;getApiUrlItemData(A.dashboardId,e,n,l)};let resultData;const getData=e=>{if(!props.id)return;currentId.value=props.id;let A="api/Sys_Dashboard/getLayoutData?id="+props.id+"&view="+proxy.readonly;proxy.http.post(A,{},!0).then(l=>{if(!l){elementPlus.ElMessage({message:"未查到数据",type:"error",plain:!0});return}resultData=l;let n=[];if(l.options)try{n=JSON.parse(l.options)}catch(a){console.log("加载配置异常："+l.options),console.log(a)}layout.value=n,n.forEach((a,r)=>{a.data=getDefaultData(a),a.dataText=JSON.stringify(a.data),a.sql||a.url?(typeof a.data=="function"&&(a.data=a.data()),Array.isArray(a.data)?a.data=[]:a.data={},a.isLoad=!isChart(a)):a.isLoad=!0,a.url?loadItemData(layout.value[r],l):a.sql&&(A="api/Sys_Dashboard/getItemData?id="+l.dashboardId+"&itemId="+(a.i+"")+"&date1=null&date2=null&filterType="+a.filterValue,getApiUrlItemData(l.dashboardId,layout.value[r],A))}),props.readonly&&n.forEach(a=>{a.isDraggable=!0})})};vue.ref(!1),vue.onMounted(()=>{getData()});const getDefaultData=e=>{if(!e.sql&&!e.url)return e.formText,e.data;let A;switch(e.type){case"line":case"bar":A=barLineData();break;case"pie":A=pieData();break;case"grid":case"gridBar":e.data&&!Array.isArray(e.data.data)&&(e.data.data=[]),A=e.data.data.slice(0,10);break;case"gauge":A=e.data;break;case"table":A=tableData;break;case"form":A=formData;break;case"ranking":A=rankingData;break;case"step":A=stepData;break;case"notice":A=noticeData;break}return A},emit=__emit,preview=()=>{emit("preview",resultData,layout.value)},save=()=>{if(!layout.value.length){elementPlus.ElMessage({message:"请配置内容",type:"error",plain:!0});return}let e=layout.value.map(n=>{let a={};return Object.keys(n).forEach(r=>{r!="$chart"&&r!="dataText"&&r!="data"&&(a[r]=n[r]),r=="type"&&(a.data=getDefaultData(n))}),a}),A={mainData:{DashboardId:props.id,Options:JSON.stringify(e)}};props.id||(A.mainData.DashboardName=new Date().valueOf()+""),props.saveBefore&&props.saveBefore(A);let l="api/Sys_Dashboard/"+(props.id?"update":"add");proxy.http.post(l,A,!0).then(n=>{elementPlus.ElMessage({message:n.message,type:n.status?"success":"error",plain:!0}),n.status})},checkEmpty=(e,A)=>{if(e.type=="calendar")return!1;if(A===null)return!0;if(["pie","gauge","gridLine","gridBar","gridText"].includes(e.type))return!1;if(Array.isArray(A)){if(!A.length)return!0}else if(typeof A=="object"){if(!Object.keys(A).length)return!0}else if(A==null||A==="")return!0;return!1};return(e,A)=>{const l=vue.resolveComponent("el-scrollbar"),n=vue.resolveComponent("el-button"),a=vue.resolveComponent("el-calendar"),r=vue.resolveComponent("grid-item"),C=vue.resolveComponent("grid-layout");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1,[__props.readonly?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",_hoisted_2,[vue.createElementVNode("div",_hoisted_3,[vue.createVNode(VolHeader,{icon:"el-icon-folder-opened",title:"组件列表"})]),vue.createVNode(l,{width:1,style:{height:"100%",flex:"1"}},{default:vue.withCtx(()=>[vue.createVNode(VolComponent,{onEnd:end})]),_:1})])),vue.createElementVNode("div",_hoisted_4,[__props.readonly?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",_hoisted_5,[vue.createVNode(VolHeader,{class:"header-left",icon:"el-icon-monitor",title:"容器布局"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_6,[vue.createVNode(n,{size:"small",plain:"",icon:"Sort",onClick:A[0]||(A[0]=t=>showAttr.value=!showAttr.value)},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(showAttr.value?"收起":"展开"),1)]),_:1}),vue.createVNode(n,{type:"primary",size:"small",plain:"",icon:"Monitor",onClick:preview},{default:vue.withCtx(()=>[vue.createTextVNode("预览")]),_:1}),vue.createVNode(n,{type:"success",size:"small",plain:"",icon:"Check",onClick:save},{default:vue.withCtx(()=>[vue.createTextVNode("保存")]),_:1})])]),_:1})])),vue.createVNode(l,{style:{height:"100%"}},{default:vue.withCtx(()=>[vue.createElementVNode("div",{style:vue.normalizeStyle({transform:"scale("+colWidth.value/100+")"})},[vue.createVNode(C,{ref:"gridLayout",layout:layout.value,"onUpdate:layout":A[1]||(A[1]=t=>layout.value=t),"col-num":24,"row-height":10,"is-draggable":!0,"is-resizable":!__props.readonly,"is-mirrored":!1,"vertical-compact":!0,margin:[10,10],"use-css-transforms":!1},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(layout.value,(t,s)=>(vue.openBlock(),vue.createBlock(r,{class:vue.normalizeClass(["grid-item",{"grid-item-acitve":!__props.readonly&&currentItem.value.i==t.i,"grid-item-normal":t.type=="gridText"}]),ref_for:!0,ref:"gridItem",onResized:resizedEvent,isDraggable:!__props.readonly,x:t.x,y:t.y,w:t.w,h:t.h,i:t.i,key:t.i},{default:vue.withCtx(()=>[__props.readonly?vue.createCommentVNode("",!0):vue.withDirectives((vue.openBlock(),vue.createElementBlock("span",{key:0,class:"close",onClick:g=>delItem(t)},_hoisted_9,8,_hoisted_7)),[[vue.vShow,currentItem.value.i==t.i]]),checkEmpty(t,t.data)?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"empty-data",onClick:g=>itemClick(t)},[_hoisted_11,vue.createElementVNode("div",_hoisted_12,vue.toDisplayString(e.$ts("无数据")),1)],8,_hoisted_10)):vue.createCommentVNode("",!0),t.showFilter?(vue.openBlock(),vue.createElementBlock("div",{key:2,class:vue.normalizeClass(["vol-data-filter",{"vol-data-filter-ver":t.filterType=="横向显示"}])},[vue.createVNode(VolDataFilter,{filterType:t.filterType,modelValue:t.filterValue,"onUpdate:modelValue":g=>t.filterValue=g,onFilterChange:()=>{filterChange(t)}},null,8,["filterType","modelValue","onUpdate:modelValue","onFilterChange"])],2)):vue.createCommentVNode("",!0),t.type=="table"?(vue.openBlock(),vue.createBlock(VolDataTable,{key:3,onClick:g=>itemClick(t),title:t.title,data:t.data},null,8,["onClick","title","data"])):t.type=="notice"?(vue.openBlock(),vue.createBlock(VolDataNotice,{key:4,onClick:g=>itemClick(t),title:t.title,data:t.data,onComponentItemClick:(g,d)=>{componentItemClick(g,d,t)}},null,8,["onClick","title","data","onComponentItemClick"])):t.type=="form"?(vue.openBlock(),vue.createBlock(VolDataForm,{key:5,onClick:g=>itemClick(t),title:t.title,data:t.data,column:t.column,form:t.form},null,8,["onClick","title","data","column","form"])):t.type=="card"?(vue.openBlock(),vue.createBlock(VolDataForm,{key:6,onClick:g=>itemClick(t),border:!1,column:t.column,title:t.title,data:t.data,form:t.form},null,8,["onClick","column","title","data","form"])):t.type=="calendar"?(vue.openBlock(),vue.createBlock(a,{key:7,onClick:g=>itemClick(t)},{"date-cell":vue.withCtx(({data:g})=>[vue.createElementVNode("div",{class:vue.normalizeClass([g.isSelected||dtNow==g.day?"is-selected":"","date-cell"])},vue.toDisplayString(g.day.split("-").slice(1)[1]),3)]),_:2},1032,["onClick"])):t.type=="step"?(vue.openBlock(),vue.createBlock(VolDataStep,{key:8,title:t.title,data:t.data,onClick:g=>itemClick(t)},null,8,["title","data","onClick"])):t.type=="ranking"?(vue.openBlock(),vue.createBlock(VolDataRanking,{key:9,lalelPosition:t.top?"top":"left",title:t.title,data:t.data,titleColor:t.titleColor,fontColor:t.fontColor,unit:t.unit,strokeWidth:t.strokeWidth,onClick:g=>itemClick(t)},null,8,["lalelPosition","title","data","titleColor","fontColor","unit","strokeWidth","onClick"])):t.type=="grid"?(vue.openBlock(),vue.createBlock(VolDataGrid,{key:10,title:t.title,data:t.data,onClick:g=>itemClick(t),onComponentItemClick:(g,d)=>{componentItemClick(g,d,t)}},null,8,["title","data","onClick","onComponentItemClick"])):t.type=="gridText"?(vue.openBlock(),vue.createElementBlock("div",{key:11,style:vue.normalizeStyle([{background:t.data?"":"#fff"},{display:"flex",height:"100%"}])},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(t.data,(g,d)=>(vue.openBlock(),vue.createBlock(VolDataGridText,{style:{flex:"1"},key:d,data:[g],font:t.isFont,showNumber:!!t.showNumber,"font-color":t.fontColor[d],"bg-color":t.bgColor[d],"title-color":t.titleColor[d],icon:[t.icon[d]||(t.isFont?"el-icon-receiving":"32.png")],onClick:u=>itemClick(t),onComponentItemClick:(u,p)=>{componentItemClick(u,p,t)},size:t.imgSize},null,8,["data","font","showNumber","font-color","bg-color","title-color","icon","onClick","onComponentItemClick","size"]))),128))],4)):t.type=="gridLine"||t.type=="gridBar"?(vue.openBlock(),vue.createElementBlock("div",{key:12,onClick:g=>itemClick(t),class:"grid-item-chart vol-grid-item"},[vue.createElementVNode("div",_hoisted_14,vue.toDisplayString(t.title),1),vue.createElementVNode("div",_hoisted_15,[vue.createTextVNode(vue.toDisplayString(((t.data.value||0)+"").replace(/\B(?=(\d{3})+(?!\d))/g,","))+" ",1),vue.createElementVNode("span",_hoisted_16,vue.toDisplayString(t.data.unit),1)]),t.isLoad?(vue.openBlock(),vue.createElementBlock("div",{key:0,style:{height:"30px",width:"100%"},ref_for:!0,ref:g=>setItemRef(g,t),id:t.i},null,8,_hoisted_17)):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_18,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(t.data.bottom||[],(g,d)=>(vue.openBlock(),vue.createElementBlock("div",{key:d},vue.toDisplayString(g),1))),128))])],8,_hoisted_13)):(vue.openBlock(),vue.createElementBlock("div",{key:13,onClick:g=>itemClick(t),class:"grid-item-chart"},[vue.createElementVNode("div",_hoisted_20,vue.toDisplayString(e.$ts(t.chartTitle)),1),t.isLoad?(vue.openBlock(),vue.createElementBlock("div",{key:0,style:{height:"100%",width:"100%"},ref_for:!0,ref:g=>setItemRef(g,t),id:t.i},null,8,_hoisted_21)):vue.createCommentVNode("",!0)],8,_hoisted_19))]),_:2},1032,["isDraggable","class","x","y","w","h","i"]))),128))]),_:1},8,["layout","is-resizable"])],4)]),_:1})]),__props.readonly?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",_hoisted_22,[vue.createElementVNode("i",{class:vue.normalizeClass([showAttr.value?"el-icon-d-arrow-right":"el-icon-d-arrow-left"]),onClick:A[2]||(A[2]=t=>showAttr.value=!showAttr.value)},null,2)])),__props.readonly?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",{key:2,class:vue.normalizeClass(["grid-layout-attr grid-layout-item",{"grid-layout-attr-hide":!showAttr.value}])},[vue.createVNode(l,{style:{height:"100%"}},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_23,[vue.createVNode(VolDataParams,{onChange:paramsChange,currentItem:currentItem.value,onApiSearchClick:apiSearchClick,onSqlChange:sqlChange},null,8,["currentItem"])])]),_:1})],2))])}}}),VolDashboard=_export_sfc(_sfc_main,[["__scopeId","data-v-76ccde06"]]);VolDashboard.install=e=>{e.component(VolDashboard.name,VolDashboard)};const components=[VolDashboard],install=e=>{components.forEach(A=>{console.log("app",e,A),e.component(A.name,A)})},VolDashboardUI={install};return VolDashboardUI});
